[Dovecot] Auth error in log

Per-Henrik Lundblom ph at whatever.nu
Mon Sep 2 16:40:14 EEST 2013


Hi,

> When a virtual user defined in the MySQL database tries to log in using
> IMAP or SMTP I always get auth failures logged in the system logs.
> Entries are like this:
> 
> Aug 21 06:25:36 roadrunner dovecot-auth: pam_unix(dovecot:auth):
> authentication failure; logname= uid=0 euid=0 tty=dovecot
> ruser=luser at mydomain.com rhost=85.224.xx.xx
> 
> I assume these failures comes form the fact that PAM doesn't recognize
> the virtual users and Dovecot continues to the SQL passdb entry. As a
> result I get a _lot_ of auth failures in the logs.
> 
> I have tried to come up with a way where the auth failures from PAM
> arent't logged if the the SQL authenication is successful. Is this
> possible or are there any other recommended ways to handle this?

How do other users solve this issue? The simple way is to just ignore
all the logged auth failures but that seems too easy.

/PH

--
Per-Henrik Lundblom           email: ph at whatever.nu
cell: +46 733-20 71 26      webpage: www.whatever.nu



More information about the dovecot mailing list