Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 592 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 592 Bytes

filter-auth

Logger for OpenSMTPD failed authentication attempts using OpenSMTPD reporting API.

The logs can be processed with fail2ban to block hosts with excessive failed login attempts.

Log output:

May  1 03:27:52 host smtpd[161]: auth-reporter: failed authentication from [email protected] address=1.2.3.4 host=host.domain.com

Fail2ban filter /etc/fail2ban/filter.d/opensmtpd.conf

[Definition]

_daemon = smtpd

journalmatch = _SYSTEMD_UNIT=opensmtpd.service

failregex = ^.*: auth-reporter: failed authentication from user=.* address=<HOST> host=.*$