Wietse Venema:
> Patrick Ben Koetter:
> > My primary goal would be to detect SASL login attacks/abuse and block the
> > client/temporarily disable the account. Catching envelope-sender abuse is
> > less important to me.
> 
> There is no way to find out about login failure, unless the client
> sends HELO, MAIL FROM, RCPT TO, or DATA after failing to log in.

It could be done with a man-in-the-middle one the Dovecot protocol
(this passes the client IP address to the authentication server).

For example, put a proxy between Postfix and Dovecot and watch the
authentication attempts. The Dovecot auth protocol is dead-simple,
and the proxy has to understand only a few protocol fields.

One event-driven Perl or Python script could handle the queries and
replies for lots of concurrent client sessions. Forking a process
per SMTP session would be more expensive.

        Wietse

Reply via email to