1

Topic: Fail2Ban Errors

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
- Linux/BSD distribution name and version: Ubuntu 20.04.5 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Not yet
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, I hope someone can help.I'm getting this message every minute delivered to my postmaster mailbox:

No MySQL or PostgreSQL related config file found. Abort.
- MySQL: /root/.my.cnf-fail2ban (or /root/.my.cnf)
- PostgreSQL: ~/.pgpass (under PostgreSQL daemon user's home directory)


When I check Fail2Ban's status I get this:

Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.filter [3878]: INFO [sshd] Found 185.122.204.184 - 2022-11-09 05:32:37
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.jail [3878]: INFO Jail 'roundcube' started
Nov 09 05:34:30 mail.replogle.us fail2ban-server[3878]: Server ready
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.actions [3878]: NOTICE [postfix-pregreet] Restore Ban 1.234.21.73
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.utils [3878]: ERROR 7f9cb871a8c0 -- exec: ['f2bV_ipjailmatches=$0 \n/usr/local/bin/fail2ban_banned_db ban >
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.utils [3878]: ERROR 7f9cb871a8c0 -- stdout: 'No MySQL or PostgreSQL related config file found. Abort.'
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.utils [3878]: ERROR 7f9cb871a8c0 -- stdout: ' - MySQL: /root/.my.cnf-fail2ban (or /root/.my.cnf)'
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.utils [3878]: ERROR 7f9cb871a8c0 -- stdout: " - PostgreSQL: ~/.pgpass (under PostgreSQL daemon user's home>
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.utils [3878]: ERROR 7f9cb871a8c0 -- killed with signal 127 (return code: 255)
Nov 09 05:34:30 mail.replogle.us f2b/server[3878]: fail2ban.actions [3878]: ERROR Failed to execute ban jail 'postfix-pregreet' action 'banned_db' info 'ActionInfo({'>

I tried removing and reinstalling but I keep getting the same message.

Not sure if this related but I had recently setup a forward and alias in MYSQL. 

Thanks for your help.

----

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