dovecot fail2ban error

  • Debian 9
    IMSCP 1.5.3


    I'm using dovecot for the first time on a new system,
    now I have setup fail2ban:
    https://wiki.i-mscp.net/doku.php?id=start:howto:fail2ban


    but something does not work:


    Code
    1. iptables -w -A f2b-dovecot -j RETURN
    2. iptables -w -I INPUT -p tcp -m multiport --dports smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s -j f2b-dovecot -- stdout: b''
    3. 2018-05-20 14:30:41,327 fail2ban.action [28925]: ERROR iptables -w -N f2b-dovecot
    4. iptables -w -A f2b-dovecot -j RETURN
    5. iptables -w -I INPUT -p tcp -m multiport --dports smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s -j f2b-dovecot -- stderr: b"iptables v1.6.0: invalid port/service `imap3' specified\nTry `iptables -h' or 'iptables --help' for more information.\n"
    6. 2018-05-20 14:30:41,329 fail2ban.action [28925]: ERROR iptables -w -N f2b-dovecot
    7. iptables -w -A f2b-dovecot -j RETURN
    8. iptables -w -I INPUT -p tcp -m multiport --dports smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s -j f2b-dovecot -- returned 2
    9. 2018-05-20 14:30:41,330 fail2ban.actions [28925]: ERROR Failed to start jail 'dovecot' action 'iptables-multiport': Error starting action


    ### edit ###
    solved:
    removed imap3 port from fail2ban jail.local

    Edited once, last by fulltilt ().