Topic: IP keeps being banned
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
The component of iRedMail that automatically bans IP's based on certain activity (fail2ban?) keeps blocking an IP used by multiple users.
Chain f2b-dovecot (1 references)
target prot opt source destination
REJECT all -- MY.HOST.NAME anywhere reject-with icmp-port-unreachable
RETURN all -- anywhere anywhere
I assume with it being in the f2b-dovecot chain that it's something to do with user IMAP connections. There is a fail2ban log file in /var/log but it's empty. Should entries be placed in here when IP's are banned?
Ok working through this myself I've found the imap.log file and can see it's one user attempting to connect with an incorrect password. I've now removed it with fail2ban_unban_ip.sh.
So I still have three quick questions:
1) Should all fail2ban activity be logged in /var/log/fail2ban.log?
2) Is there a way to whitelist an IP so it never gets blacklisted?
3) iRedAPD 3.0 seems to have been released but there was no announcement for it on the forum. Does it contain any important updates?
Many thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.