Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding IP address to logs for 535 LOGIN errors, to use with fail2ban #301

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

tlavoie
Copy link
Contributor

@tlavoie tlavoie commented Aug 19, 2021

Based on the idea and patch linked from here: https://www.linkedin.com/pulse/howto-add-fail2ban-support-qpsmtpd-authentication-failures-andrew-pam/

Basically, just add the IP address to the log for other tools (in my case fail2ban) to parse and ban IPs that fail to authenticate.

This is ever so slightly different, as the link above is 5 years old. I tried this out directly against 0.94-4 in Debian Buster, then replicated the one-line change against current master.

@msimerson msimerson merged commit dc7ac3c into smtpd:master Aug 19, 2021
@msimerson
Copy link
Member

great description of what it does, thanks for the contribution.

@tlavoie
Copy link
Contributor Author

tlavoie commented Aug 19, 2021

You're most welcome. Always nice to be able to scratch my own itch, and help others to do the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants