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?
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?