[Mailmunge] Different reject code than expected.

list at ptld.com list at ptld.com
Sun Feb 13 11:38:34 EST 2022


I returned a temp 4xx fail from the recipient filter

  sub filter_recipient {
    if (condition) {
      return Mailmunge::Response->REJECT(message => "Reason", code => 450, dsn => "4.7.1");
    }
  }

However postfix still reported a permanent 5xx fail.


  postfix/smtpd[693827]: connect from example.com[xxx.xxx.xxx.xxx]

  postfix/smtpd[693827]: NOQUEUE: milter-reject: RCPT from example.com[xxx.xxx.xxx.xxx]: 
  554 5.7.1 Reason; from=<test at example.com> to=<user at localhost.com> proto=ESMTP helo=<example.com>

  postfix/smtpd[693827]: disconnect from example.com[xxx.xxx.xxx.xxx]
  ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=6/8


I find it odd it wasn't a direction translation of 450 to 550, but was 554 instead.
Any idea what would cause the code returned by mailmunge to not be the same with postfix?
Any direction to point me in for trouble shooting?


More information about the Mailmunge mailing list