[email protected]:
> I noticed when mail is rejected by a milter or header check it only logs
> the DSN number and not the error code (550).
>
> cleanup: milter-reject: END-OF-MESSAGE from
> mail.example.com[111.222.333.444]: 5.7.1 Command rejected;
> from=<[email protected]> to=<[email protected]> proto=ESMTP
> helo=<mail.example.com>
>
> Is this intentional or should it have the full reject code "550 5.7.1"?
Intentional. The Milter handles all email, including non-SMTP
contexts (local pickup daemon, qmqpd daemon, and internally-forwarded
mesasages). The 550 status is meaningful only in an SMTP context.
The 5.7.1 on the other hand is valid in any email handling context.
Postfix encapsulates the channel-specific details in dedicated
programs. For example, SMTP status codes are handled in the SMTP
server and client; and UNIX process exit status codes in the local
and pipe delivery agents).
Wietse