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" restriction.

From: Patrick Ben Koetter (pstate-of-mind.de)
Date: Mon Mar 27 2006 - 23:06:39 CST


* Truong Tan Son <sonttfcv.fujitsu.com>:
> Dear Sir,
>
> I want to restrict the SIZE of messages that send to domains:
>
> mydomain.com 5Mb OK
> >5Mb REJECT
>
> yahoo.com 1M OK
> >1Mb REJECT
>
>
> It seems that couldn't nest HEADER_CHECKS(5), smtpd_sender_restrictions,
> smtpd_recipient_restrictions to check the SIZE of messages.
>
> Do you have any ways to do that ?

Use an external Policy service, such as Cami's policyd
<http://policyd.sourceforge.net>, to enforce quotas per domain.

prick

--
The Book of Postfix
<http://www.postfix-book.com>
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>