OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: message_size_limit

From: Simon Schelkshorn (simonschelkshorn.de)
Date: Thu Jun 11 2009 - 09:08:16 CDT


Hi,

thanks for your fast reply.

Truth Seeker: I added the message_size_limit statement to the
definition in master.cf as I intended to increase the message size
only for mail sent from my local users and not for all messages.

> > > You can't change the size limit for the SMTP server alone.
> > > It must be a main.cf setting.
> >
> > Specifically, message_size_limit is enforced by cleanup(8). Adding
> > another cleanup(8) service with a different message_size_limit and
> > choosing it for this particular smtpd(8) with cleanup_service_name
> > should work.
>
> But wait, there is more...
>
> The queue manager and the delivery agents can be affected, too.
> Depending on how mail gets into Postfix, recipient records may be
> sitting at the end of a queue file, and when a delivery agent (or
> queue manager) tries to mark a recipient as "done" they get into
> trouble when their "message size limit" setting is too small.
>
> That was one of the bugs that was introduced by the VDA patch,

Thanks Magnus for showing a way on how to achieve what I was trying
to get and thanks Wietse for pointing out, that there may be some
other problems with it.

So I decided to go with the "save" configuration and increased the
general message size in main.cf.

Simon