miltertest provides the EOM check operation MT_SMTPREPLY, which allows testing which SMTP reply code, enhanced status code, and reply text a milter requested.
However, being an EOM check, this feature is available only in the EOM callback, not in other callbacks: this is an artificial limitation, since a custom SMTP reply may be set up in any other callback as well. For example, one might want to reject a message in the mailfrom callback with a custom SMTP reply.
It is currently not possible to check for a custom SMTP reply in callbacks other than EOM. It would be good if this limitation could be lifted.
miltertest provides the EOM check operation
MT_SMTPREPLY
, which allows testing which SMTP reply code, enhanced status code, and reply text a milter requested.However, being an EOM check, this feature is available only in the EOM callback, not in other callbacks: this is an artificial limitation, since a custom SMTP reply may be set up in any other callback as well. For example, one might want to reject a message in the
mailfrom
callback with a custom SMTP reply.It is currently not possible to check for a custom SMTP reply in callbacks other than EOM. It would be good if this limitation could be lifted.