> On Nov 20, 2019, at 12:38 PM, A. Schulze <s...@andreasschulze.de> wrote: > >>> The SMTP daemon also enforces the message size limit independently. >>> You can therefore specify different limits on the submission and >>> port25 services. >>> >>> However, those limits cannot be larger than the limit that is >>> enforced by the cleanup daemon. >> >> How do you set a different limit in cleanup then? Or do you set >> message_size_limit to the maximum size for submission and then set a >> separate limit for smtpd? How would you do that? >> >> main.cf: >> message_size_limit=40000000 >> >> smtp inet n - - - - smtpd >> -o message_size_limit= 5120000 >> >> And leave submission alone? > just verified it work exactly this way...
Just make sure that message_size_limit is never smaller for any of the backend components that process the message, this includes cleanup and delivery agents. Therefore, the main.cf setting must be the maximum of any values you set in any smtpd(8) or in postdrop(8). -- -- Viktor.