LinuxBabe Community

Postfix pam_authenticate() failed

Hi,

I followed the great tutorial from Xiao Guo-An that I thank very much because I have today a great postfix / devecot / roundcube server under Ubuntu server 20.04 and which works very well.

There is a certain point that I can’t seem to resolve related to Pam.d that consistently fails

Each time my odoo crm is connected, I have this series of logs which indicates an authentication failure which does not seem blocking elsewhere but …

Thank you !

My 10-master.conf

    service auth {
  
    unix_listener /var/spool/postfix/private/auth {
          mode = 0660
          user = postfix
          group = postfix
      }   
}
     
    service auth-worker {
      }

It’s probably because you have installed PostfixAdmin and enabled virtual mailbox, but didn’t disable canonical mailbox, so Dovecot would use PAM to authenticate users first, then fall back to SQL virtual mailbox.

To disable PAM authentication, edit the /etc/dovecot/conf.d/10-auth.conf file and comment out the following line.

!include auth-system.conf.ext

Save and close the file. Resart Dovecot.

sudo systemctl restart dovecot

Thank you very much, it works, I did the manipulation well and everything is back to normal, it’s now perfect! :+1:

1 Like