|
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 - new thread.
anant
isac.gov.in
Date: Sun Nov 12 2006 - 08:10:51 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear List:
I already had lot of discussion on this. I will just brief on it and
then I have few more doubts to be clarified.
Following is the brief:
-----------------------------------------------------------------------
What I posted:
I am attaching the perl script which I am using to control the size of
the message
received. DATAFILE contains the e-mail id and maximum allowed size.
If e-mail id is not
in DATAFILE, that e-mail id is allowed a default mail size (2MB).
My main.cf has the following entry:
smtpd_end_of_data_restrictions =
check_policy_service inet:127.0.0.1:9997
127.0.0.1:9997_time_limit = 3600
It works perfectly when the recipient is only one. But, if there are
more than one
recipient, it allows the mail to be delivered even if the recipient is
not suppose to
receive that size mail.
Do you think, my code has problem? or it can not be implemented if
there are more than
one recipient.
Replies:
1.
I didn't look at the code, but the problem is that at end of data there is no
per-recipient response possible. As such, postfix cannot supply a
recipient name to a
policy service at smtpd_end_of_data_restrictions when there is more
than one recipient.
This is a property of the SMTP protocol and not some deficiency in
postfix. There is no
good solution.
--
Noel Jones
2.
Noel is right. When you REJECT at END-OF-DATA, you will always
reject the mail for all recipients.
Wietse
------------------------------------------------------------------------
Now I propose this solution for my requirement. Please comment on this:
1. I will simply accept all the mails irrespective of size.
2. Create one more instance of postfix and pass all the received mails to it.
3. Postfix will send me the size of mail in MAIL FROM itself.
4. I will put the SMTPD-POLICYD perl script in smtpd_recipient_restrictions.
I hope this will allow me to control userwise limit on size for the
incoming mails.
Please comments on this please.
Regards,
Anant.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]