Skip to content

Logger for OpenSMTPD failed authentication attempts using the reporting API.

License

Notifications You must be signed in to change notification settings

whataboutpereira/filter-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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=.*$

About

Logger for OpenSMTPD failed authentication attempts using the reporting API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages