#991235 fail2ban fails to send mails properly

#991235#5
Date:
2021-07-18 07:05:12 UTC
From:
To:
Hello,

since the upgrade to this version of fail2ban, fail2ban fail to send mails properly.

For every notification, I get a delivery failure report from my MTA

#991235#10
Date:
2021-09-18 18:08:21 UTC
From:
To:
The problem is that the "mail" commands in
/etc/fail2ban/action.d/mail*.conf have a wrong "-E 'set escape'" option
(it wasn't there before).
According to "man mail"

#991235#15
Date:
2021-09-18 18:22:09 UTC
From:
To:
El 18/9/21 a les 20:08, Luca Olivetti ha escrit:

yes, that's it

https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm

unfortunately the "fix" breaks if one is using bsd-mailx (as I am),
which, according to the report, doesn't suffer from the same vulnerability.