OpenDKIM icon indicating copy to clipboard operation
OpenDKIM copied to clipboard

miltertest: Cannot check SMTP reply outside of EOM callback

Open glts opened this issue 5 years ago • 0 comments
trafficstars

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.

glts avatar Sep 04 '20 16:09 glts