How can I customize the order of the content of the action_mwl e-mails? I'd like to see the matching log lines before the whois output.
action_mwl is defined at https://github.com/fail2ban/fail2ban/blob/master/config/jail.conf#L220
(your local /etc/fail2ban/jail.conf may vary) and the
email is assembled in the action https://github.com/fail2ban/fail2ban/blob/master/config/action.d/sendmail-whois-lines.conf
which is typically found at /etc/fail2ban/action.d/sendmail-whois-lines.conf.
Try moving %(_whois_command)s; after %(_grep_logs)s;
in actionban.
Duplicate sendmail-whois-lines.conf and rename (e.g., sendmail-lines-whois.conf)
the duplicate, alter the order in actionban, and cite
the desired action_mwl definition from jail.conf
(both lines, changing the action name) in jail.local.
_______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users