PAM: Authentication failure, with valid password
Your system installation appears to be broken. For some reason, the file /sbin/unix_chkpwd
has lost the privilege bits I would expect to see.
Fix the permissions by running the following command as root:
chmod u+s /sbin/unix_chkpwd
And verify the permissions are now as follows (see the s
bit in the user permissions):
-rwsr-xr-x 1 root root 31392 Jun 9 2016 /sbin/unix_chkpwd
On my Raspbian distribution the permissions are set slightly differently (and more restrictively). If the change described above does not work, carefully change the permissions on these two files and see if this helps (the group name does not matter too much as long as it's the same in both cases):
-rw-r----- 1 root shadow 1354 Dec 6 13:02 /etc/shadow
-rwxr-sr-x 1 root shadow 30424 Mar 27 2017 /sbin/unix_chkpwd
On a Debian machine, in my case I had to add exim4 user to the shadow
group.
usermod -a -G shadow Debian-exim
PAM: On Debian systems the PAM modules run as the same user as the calling program, so they cannot do anything you could not do yourself, and in particular cannot access /etc/shadow unless the user is in group shadow. - If you want to use /etc/shadow for Exim's SMTP AUTH you will need to run exim as group shadow. Only exim4-daemon-heavy is linked against libpam. We suggest using saslauthd instead.
http://lira.no-ip.org:8080/doc/exim4-base/README.Debian.html