How to configure Fail2ban to blacklist an attack with postfix/smtpd (I am a novice)

No, it doesn’t work; however, with this, it works:

backend = auto
logpath = /var/log/mail.log

Can I leave it like this, or is there something to improve ?