Setup fail2ban for dovecot on Leap 15.2

I have an e-mail server with Leap 15.2 that uses dovecot. Now I want to prevent brute force attacks on this server with fail2ban. Does fail2ban 0.10.4 cooperate with dovecot 2.3 on Leap 15.2? How do I set up this configuration? Thanks a lot! Ralph.

Did you try what is on

Looks to me also can be handy, only skip/replace the yum/chkconfig/service commands.