Fail2ban + mta - nothing

Discussion in 'Server Operation' started by Jflix, Dec 15, 2020.

  1. Jflix

    Jflix New Member

    Hi all
    Long time since dist-upgrade so scratched Jessie and did a clean install to Buster. So far so good, except I can't get f2b mails to work. Configured postfix and everything else works in regards of outgoing mail, except F2B. Spent several hours on this and could use some insights now.

    Quite straight forward clean install, no additional configuration. Using jail.local for defaults with UFW as action configuration. Currently sshd enabled only for testing purposes. Tried both MTA's, sendmail and mail.

    No jail start/stop notifications, no jail trigger notification emails. Manually mail -s and /usr/sbin/sendmail works so no issues there.

    Ideas?
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Do you have a default banaction which sends email? What email address do you have set for fail2ban to send from and to? What shows up in mail logs when one of those messages is sent?
     
  3. Jflix

    Jflix New Member

    Ugh, fatigue I think. Nothing on the logs, that's why I was lost. But yeah, missed a typo. Fixed default action to 'action_mwl' instead, and now it works.

    Much appreciated for pointing me to the right direction :)
     

Share This Page