One other consideration is to remember that MIME encoding seems to cause about a 25% size increase, so if you report that you'll accept 10 mb (for instance) the practical limit for the sender is actually somewhere between a 7.5 and 8 mb attachment. It may be that you want to take that into consideration for any messages reported back to the sender.
...Kevin -- Kevin Miller Network/email Administrator, CBJ MIS Dept. 155 South Seward Street Juneau, Alaska 99801 Phone: (907) 586-0242, Fax: (907) 586-4500 Registered Linux User No: 307357 -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Friday, October 30, 2015 5:04 AM To: Postfix users Subject: Re: message_size_limit versus prepended header martijn.list: [ Charset windows-1252 converted... ] > On 10/30/2015 12:56 PM, Jeroen Scheerder wrote: > > Quoth Jeroen Scheerder (30 Oct 2015, 12:46): > > > >> That would result in a > >> > >> 250-SIZE 10240000 > >> > >> helo message, *and* a true size limit of 10239918. > > > > I obviously omitted the evident edit. I had meant to write: > > > > "That would result in a > > > > 250-SIZE 10239918 > > > > helo message, *and* a true size limit of 10239918." > > I probably misunderstand your requirements but is this not what you > want? You want to accept the message and make sure the message is not > refused later on because Postfix added some extra information (headers > etc.). Then the true message size limit for submission should be less > then the global message size limit. You need to make sure that the > message size limit reported by the submission port is small enough to > allow any overhead added by postfix (like the added headers). To be safe, have the (submission) smtpd process announce a size limit that is a few kbytes under the Postfix global size limit. Wietse