Fail2ban Postfix & Dovecot port errors when saving

Hi,

I searched the forums / web and have seen this issue mentioned a few times but I’ve not found a solution. When trying to enable or alter a filter action jail for postfix-sasl or dovecot both throw the following error when saving:

Failed to save jail : Invalid port name, number or range; use a single port name, number or a range in the form start:end; to specify multiple ports, separate them with commas

This error links back to fail2ban/save_jail.cgi (line 53) - at least for Dovecot.

I should also add that these are the default settings (dovecot): pop3,pop3s,imap,imaps,submission,465,sieve

Hopefully someone can point me to a solution while I poke around in the code… :grin:

Thanks
m

SYSTEM INFORMATION
OS type and version Debian Linux 12
Webmin version 2.202
Virtualmin version 7.30.4 Pro
Webserver version Apache 2.4.62
Fail2ban 1.0.2-2

Hello,

Thanks for the heads-up! This was a bug in Webmin 2.202, and it will be fixed in the upcoming Webmin 2.210 release!

However, you can try applying the following patches now and see if they work for you.

webmin patch https://github.com/webmin/webmin/commit/23871ff
webmin patch https://github.com/webmin/webmin/commit/5427420
webmin patch https://github.com/webmin/webmin/commit/d0e7a4e