fail2ban do not send mails after installation so you need to do these changes in jail.conf-

File is available at /etc/fail2ban/jail.conf

  1. change action = %(action_)s to
    action = %(action_mw)s
  2. change destemail = youremail

and dont forget to take backup first