my sendmail on fail2ban not working or not send notification ban/unban IP to my email (yahoo or gmail).
this is my configuration
1. on the jail.local
destemail = ruri.dakyu@gmail.com
[ssh]

enabled = true
port    = ssh
filter    = sshd
action    = iptables-multiportssh[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s]
              %(mta)s-whois[name=%(__name__)s, dest="%(destemail)s", protocol="%(protocol)s]
logpath = /media/log/logssh/auth.log
maxretry = 2
2. on the sendmail-whois
standart configuration

fail2ban had been ban/unban IP attacker but there is no notification in my email.

if I run the syntax
root@PCrouter:/etc/mail# m4 sendmail.mc > sendmail.cf
i have got the results
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
 
whats wrong with my configuration?
thanks for your help..