OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
smtp-policy on size regarding...

From: Anant Athavale (anantisac.gov.in)
Date: Fri May 12 2006 - 05:56:03 CDT


Dear List:

I am working with Postfix 2.2.9.

I have already implemented size restriction using SMTPD-POLICY for
outgoing mails. That is, I have allowed some users to send higher size
mails.

Yesterday, when I was trying to implement similar requirement for
incoming mails, I found that size attribute has value zero (most of
the times/always).

To solve this problem, I added an instance of postix, to which all the
received mails are forwarded/relayed using transport maps. This gets
the size and now I implement the SMTP-POLICY to restrict higher size
mail only for specific e-mail ids.

This solution seems to be working. Is it the correct way to implement
this requirement? Is there a better solution?

Regards,
Anant.