On 3/12/2013 9:57 AM, Алексей Доморадов wrote: > Hello All. > > Is there possibility to override message_size_limit? For example, we > have setup message_size_limit to 1 Mb. Client sent message to our > mail server with attachment about 5 mb. Could we accept that > message, remove any attachments (altermime/etc) and delivery to the > final destination?
The message_size_limit is global, there's not a way to override it. As a workaround, you can set the message_size_limit higher, say 10Mb, and use a policy service to reject mail from unauthorized senders over 1Mb. http://www.postfix.org/SMTPD_POLICY_README.html http://postfwd.org/ It would also be possible to use the policy service to trigger a FILTER statement to send the oversized message to eg. altermime for mangling. -- Noel Jones