email – 更改Postfix中的最大邮件大小

前端之家收集整理的这篇文章主要介绍了email – 更改Postfix中的最大邮件大小前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
将大型电子邮件发送到运行Postfix作为MTA的新CentOS6服务器时,将返回以下消息:

tried to deliver your message,but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 552 552 5.3.4 Error: message file too big (state 18)

我找到了以下suggestion,但不清楚它需要在main.cf文件添加的位置:

This was caused by Postfix and it’s limit on not only messages but mailBox sizes.

I had to add this setting in /etc/postfix/main.cf:

message_size_limit = 31457280

如何在Postfix中增加最大邮件大小(包括附件)?

将它添加到main.cf的任何地方,它都不相关:)但是保持指令以某种逻辑方式分组是很好的,它更容易维护
根据官方postfix文档:
message_size_limit(默认值:10240000)消息的最大字节数,包括信封信息.注意:进行更改时要小心.当退回邮件大小超过本地或远程MTA的邮件大小限制时,过小的值将导致丢失未送达通知.

此外,默认邮箱大小为50M可能会阻止邮件传递,尤其是在增加允许的邮件大小之后.要增加每个用户邮箱大小的最大值,请添加mailBox_size_limit =< size in bytes>到main.cf.

此外,正如Ian Sparkes所述,如果您使用的是虚拟邮箱配置,则可能需要设置virtual_mailBox_limit =< size_in_bytes>.

原文链接:https://www.f2er.com/centos/373985.html

猜你在找的CentOS相关文章