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: Truong Tan Son (sonttfcv.fujitsu.com)
Date: Tue Mar 28 2006 - 20:48:51 CST


Patrick wrote:

>* 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.

Cami's policyd (throttle, throttle_sender, throttle_rcpt) mentions quotas for Sender,
quotas for rcpt is NOT mentioned .

Allow me focus my case:

 *_from: *_rcpt:
    
   mydomain.com =================> mydomain.com
           | ( internal to internal )
           | _mail_size <= 5Mb ACCEPT
           |
           |
           |=========================> [Other]
                              ( internal to external )
                                                               _mail_size <= 1Mb ACCEPT

Please guide me options or tool to solve.

Thanks,
--