主题: 無法管制信件大小

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6  + Ngix
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):Pro(LDAP)2.8.0
- 使用的 Linux/BSD 发行版名称及版本号:CentOS7.3
- 与您的问题相关的日志信息:
====

網域 Throttling 未設定管制

按照 http://www.iredmail.com/docs/change.mai … .size.html

winxp:
[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Preferences]
"MaximumAttachmentSize"=dword:00000000

設定 100M , client 使用outlook2003 或 TB 或 outook Express , 附件為30多MB ,

會出現 "Undelivered Mail Returned to Sender"


退信內容:

This is the mail system at host mail.mydomain.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system /<test@mydomain.com>//: /host 127.0.0.1[127.0.0.1] said: 552 5.3.4 Message size (37536103 B) exceeds size limit (in reply to end of DATA command)


maillog:

Apr 19 10:36:43 mail postfix/submission/smtpd[2225]: connect from unknown[192.168.1.66]
Apr 19 10:36:43 mail opendmarc[1494]: ignoring connection from [192.168.1.66]
Apr 19 10:36:43 mail postfix/submission/smtpd[2225]: Anonymous TLS connection established from unknown[192.168.1.66]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Apr 19 10:36:44 mail postfix/submission/smtpd[2225]: 33894C001B520: client=unknown[192.168.1.66], sasl_method=PLAIN, sasl_username=aaa@mydomain.com
Apr 19 10:36:44 mail postfix/cleanup[2229]: 33894C001B520: message-id=<a4c1ef72-3fbf-c220-6a5d-f7711f3ef538@mydomain.com>
Apr 19 10:36:51 mail postfix/qmgr[1462]: 33894C001B520: from=<aaa@mydomain.com>, size=37536137, nrcpt=1 (queue active)
Apr 19 10:36:51 mail postfix/smtp-amavis/smtp[2230]: 33894C001B520: to=<test@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=7.4, delays=7.3/0.01/0/0.17, dsn=5.3.4, status=bounced (host 127.0.0.1[127.0.0.1] said: 552 5.3.4 Message size (37536103 B) exceeds size limit (in reply to end of DATA command))
Apr 19 10:36:51 mail postfix/cleanup[2229]: A1823C001B521: message-id=<20170419023651.A1823C001B521@mail.mydomain.com>
Apr 19 10:36:51 mail postfix/bounce[2231]: 33894C001B520: sender non-delivery notification: A1823C001B521
Apr 19 10:36:51 mail postfix/qmgr[1462]: A1823C001B521: from=<>, size=2676, nrcpt=1 (queue active)
Apr 19 10:36:51 mail postfix/qmgr[1462]: 33894C001B520: removed
Apr 19 10:36:51 mail postfix/pipe[2232]: A1823C001B521: to=<aaa@mydomain.com>, relay=dovecot, delay=0.18, delays=0.03/0.01/0/0.14, dsn=2.0.0, status=sent (delivered via dovecot service)
Apr 19 10:36:51 mail postfix/qmgr[1462]: A1823C001B521: removed
Apr 19 10:37:01 mail postfix/submission/smtpd[2225]: disconnect from unknown[192.168.1.66]


amavisd.log:

Apr 19 10:36:51 mail.domain.com /usr/sbin/amavisd[1843]: (01843-02) ESMTP REJECT: 552 5.3.4 Message size (37536103 B) exceeds size limit

回复: 無法管制信件大小

似乎是 amavisd 里的 per-recipient policy 也设置了 message size。手工检查一下,看看 amavisd sql db 里的 users 和 policy 表里的数据(message size limit 在 policy 表)。

回复: 無法管制信件大小

從phpmyadmin 看,
message_size_limit = 30000000
直接改為100M

UPDATE `amavisd`.`policy` SET `message_size_limit` = '100000000' WHERE `policy`.`id` = 1;

ok , 可寄原本30M 的信件 , 50M 也可以.

原本在測試時 .Pro 主控台 : Max size of single email設為30M , 
再改為100M 或設定為不管制 ; 似乎是 Pro 版主控台,沒有修改資料庫為最後的設定值.

現已解決, 感謝回覆