On Wed, May 27, 2009 at 12:35:28AM -0700, Trigve Siver wrote:
>
> Hi,
>
> > From: mouss <[email protected]>
>
> > what you could do is run a script that
> > - checks the message size. if it's too large, store it somewhere for review
> > - else, run sendmail
> >
> > in any case, don't bounce without some sort of verification (some
> > anti-spam checks or a manual review).
> >
> > If you are willing to do more scripting, consider putting the large
> > messages on a web server and letting the user get them there. this needs
> > some work (create random URL, notify user, ... purge after some time,
> > ...).
>
> This solution looks nice but I don't have much experience with scripting nor
> do I have so much time to experiment with it. As I wrote in a previous mail
> it will be great if postfix have some option to accept mail and than bounce
> it back. This problem with big messages arise only 3-5 for a year and till
> now it wasn't spam.
Just set your message_size_limit larger than the ISP's limit and you are
done. If you want Postfix to bounce large mail, configure an SMTP nexthop
(perhaps a content_filter) whose limit is smaller.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.