1

Topic: Trouble with blocking users by ip-address

Our team uses iredmail on an external vps server.

We have an internal corporate network with a fixed external ip address. When someone makes a mistake entering their username and password, iredmail blocks the entire network and we cannot access our mail for several hours.

1) Please tell me in the documentation where and how can I immediately restore access to mail?

2) Is it possible to make this blocking not work at all for certain ip addresses?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by WhoAmI68 2025-10-22 17:17:32)

Re: Trouble with blocking users by ip-address

1 - https://docs.iredmail.org/fail2ban.sql.html

2 - It's not an ideal solution to ignore someone, but if necessary, you can add ignoreip = 10.10.10.10 to the jail configuration.
Alternatively, you can increase maxretry to a higher value, such as maxretry = 10.
Check your jails in the /etc/fail2ban/jail.d/ directory.

Or you can add an ignoreregex to the filter — something like:
ignoreregex = connect from unknown\[172\.20\.20\.20\].*$

3

Re: Trouble with blocking users by ip-address

Do you try to restore access immediately by removig IP from the fail2ban ban list? or restart the jail?

4

Re: Trouble with blocking users by ip-address

evelynnotting wrote:

Do you try to restore access immediately by removig IP from the fail2ban ban list? or restart the jail?

Not yet. It happens sometimes. I am waiting it now ))

5

Re: Trouble with blocking users by ip-address

Just do it. Don't keep waiting. lol