trusteddomainproject / OpenDKIM

Other
97 stars 52 forks source link

miltertest: Cannot check SMTP reply outside of EOM callback #95

Open glts opened 4 years ago

glts commented 4 years ago

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.