Hi,

I've programmed one script for checking the allowed message size for
every user on my network. I started programming this script based on
the greylist perl example script that it's in the postfix
documentation[1] (very nice start point).
The script is working well but i'm having one problem, there are some
messages that are bypassing my filter because the incoming server is
using a SMTP session and not ESMTP, the script is expecting the latter
for checking.
Is there a way configuring postfix, so if it knows that the incoming
mailserver protocol is going to be ESMTP, he will check use the script
in smtpd_recipient_restrictions and if it is SMTP will send it
directly to check in smtpd_end_of_data_restrictions.
What i want is to avoid checking twice, because with SMTP i have to
receive the whole message, and then check the size.

Is there a way to do this?

Greetings.


1- http://www.postfix.org/SMTPD_POLICY_README.html

Reply via email to