|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: smtp-policy on size regarding...
From: Anant Athavale (anant
isac.gov.in)
Date: Fri May 12 2006 - 23:28:40 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear Wietse:
Thanks a lot.
Regards,
Anant.
Quoting Wietse Venema <wietse
porcupine.org>:
> Anant Athavale:
>> 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?
>
> You see size=0, because the SMTP client did not announce the message
> size in the MAIL FROM command.
>
> Postfix 2.3 has smtpd_end_of_data_restrictions, where you have
> access to the actual message size after Postfix has received the
> entire message. This no longer depends on the message size that
> the client announces in the MAIL FROM command.
>
> Wietse
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]