Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can milters get Sendmail to drop connections?

2 views
Skip to first unread message

JonB

unread,
Nov 17, 2009, 10:02:36 AM11/17/09
to
Hi,

Just a quick question - we have a milter that wants / needs to get
Sendmail to drop the current connection - sure, we can return a
failure code - but in our case, the client just remains connected and
generates error, after error, after error...

We'd really like to drop the connection on them - but there doesn't
seem to be anything in the Milter API for doing that?

-Jon

Claus Aßmann

unread,
Nov 18, 2009, 12:51:10 AM11/18/09
to
JonB wrote:

> We'd really like to drop the connection on them - but there doesn't
> seem to be anything in the Milter API for doing that?

RTFD libmilter/docs/smfi_setreply.html
smfi_setreply
* If the milter returns SMFI_TEMPFAIL and sets the reply code
to '421', then the SMTP server will terminate the SMTP
session with a 421 error code.


JonB

unread,
Nov 19, 2009, 9:31:31 AM11/19/09
to
On Nov 18, 5:51 am, Claus Aßmann <ca+sendmail(-no-copies-please)

Thanks! - I'd never even noticed that tucked away in the
documentation!

Just writing some code to test it now!

-JonB

0 new messages