1

Topic: ERROR 1045 (28000): Access denied for user 'fail2ban'@'localhost'

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.3.2
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 20.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
====

I get spammed by emails on postmaster account with the error:

Cron <root@mail> /bin/bash /usr/local/bin/fail2ban_banned_db unban_db
ERROR 1045 (28000): Access denied for user 'fail2ban'@'localhost' (using password: NO)

How can I fix that?

----

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

2

Re: ERROR 1045 (28000): Access denied for user 'fail2ban'@'localhost'

I temporarily disable the script on cron, but I need top know why the problem appear..

3

Re: ERROR 1045 (28000): Access denied for user 'fail2ban'@'localhost'

Nevermind, It seems that someone apply an old database backup and forgot to modify the password files for fail2ban