Me:
> I’m running a milter that may perform rejection (SMFIS_REJECT) at the
> milter HELO stage. This condition appears in the system log as follows:
> 
> Jan 04 13:50:07 mail postfix/smtpd[149922]: connect from unknown[156.0.64.217]
> Jan 04 13:50:07 mail spf-milter[147333]: mail.mydomain.org (helo): fail
> Jan 04 13:50:07 mail spf-milter[147333]: rejected message from sender 
> "mail.mydomain.org"
> Jan 04 13:50:07 mail postfix/smtpd[149922]: NOQUEUE: milter-reject: HELO from 
> unknown[156.0.64.217]: 550 5.7.23 SPF validation failed; proto=SMTP 
> helo=<mail.mydomain.org>
> Jan 04 13:50:07 mail postfix/smtpd[149922]: NOQUEUE: milter-reject: MAIL from 
> unknown[156.0.64.217]: 550 5.7.23 SPF validation failed; from=<> proto=SMTP 
> helo=<mail.mydomain.org>
> Jan 04 13:50:08 mail postfix/smtpd[149922]: lost connection after MAIL from 
> unknown[156.0.64.217]
> Jan 04 13:50:08 mail postfix/smtpd[149922]: disconnect from 
> unknown[156.0.64.217] helo=1 mail=0/1 commands=1/2
> 
> • Why does Postfix log ‘milter-reject’ twice?
> • Why does it also log milter rejection for the MAIL stage, when the
>   client was rejected already at the HELO stage?

Perhaps it’s related to this?
http://www.postfix.org/SMTPD_ACCESS_README.html#timing

Apparently, the rejection is not performed immediately after the EHLO
command. During testing I notice that Postfix still proceeds to the MAIL
command, even though the milter requested rejection.

Reply via email to