Although in main.cf I have setup mailbox_size_limit, message_size_limit and added virtual_mailbox_limit to 30MB I still get all large attachments send from other domain or even from mydomain to mydomain bounced back with the above message. I am in multiserver setup running amavis postfix and dovecot. Any help will greatly be appreciated
Post the error message that you get in the mail log, maybe ist not from postfix or not from your local postfix instance.
This is the mail system at host mail.occhio.com.cy. 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 <[email protected]>: host 127.0.0.1[127.0.0.1] said: 552 5.3.4 Declared message size (2605250 B) exceeds size limit for recipient <[email protected]> (in reply to RCPT TO command) Reporting-MTA: dns; mail.occhio.com.cy X-Postfix-Queue-ID: BFF951FB03D X-Postfix-Sender: rfc822; [email protected] Arrival-Date: Tue, 16 Jul 2019 13:22:52 +0300 (EEST) Final-Recipient: rfc822; [email protected] Original-Recipient: rfc822;[email protected] Action: failed Status: 5.3.4 Remote-MTA: dns; 127.0.0.1 Diagnostic-Code: smtp; 552 5.3.4 Declared message size (2605250 B) exceeds size limit for recipient <[email protected]> Return-Path: <[email protected]> Received: from [192.168.1.151] (unknown [192.168.1.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: [email protected]) by mail.occhio.com.cy (Postfix) with ESMTPSA id BFF951FB03D for <[email protected]>; Tue, 16 Jul 2019 13:22:52 +0300 (EEST) From: Events Occhio <[email protected]> Content-Type: multipart/mixed; boundary="Apple-Mail=_D4A8C391-70B5-4BB6-ABDA-99404B7FB708" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Test attach Message-Id: <[email protected]> Date: Tue, 16 Jul 2019 13:22:52 +0300 To: Christos Vassiliou <[email protected]> X-Mailer: Apple Mail (2.3445.104.11)
Issue resolved. There is a setting in Amavis Policy Message Size Limit which apparently is prior than main.cf.