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

fail2ban_sendername and fail2ban_sender not taken into account when using sendmail as MTA #54

Open
eHanseJoerg opened this issue Jan 12, 2019 · 1 comment

Comments

@eHanseJoerg
Copy link

I am using the sendmail command (via SSMTP) as MTA. I made sure to configure sendmail/SSMTP in such a way that the FROM address is overwriteable by the service using the MTA (e.g. by fail2ban).

my fail2ban action is %(action_mwl)s

This will result in the action at /etc/fail2ban/actions.d/sendmail-common.conf to be executed.

I observe that fail2ban_sendername and fail2ban_sender are not taken into account. Replacing /etc/fail2ban/actions.d/sendmail-common.conf with a correctly configured /etc/fail2ban/actions.d/sendmail-common.local will resolve the problem.

Is this an error in the role or in fail2ban itself?

@deveth0
Copy link

deveth0 commented Jul 18, 2019

Afaics this is an issue with the action configuration in jail.local which does not set the sender / sendername:
fail2ban/fail2ban#2071 (comment)

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

No branches or pull requests

2 participants