I'm trying to set up a mail server on a fresh Ubuntu 16.04 machine but I can't get it to work properly.
I'm using a Postfix/Courier setup with MySQL for authentication.
Receiving emails and reading them using any email client (using POP3 and IMAP) works as expected but when I'm trying to send something all I get is a authentication error and these errors appear in the log:
saslauthd: PAM unable to dlopen(pam_mysql.so): /lib/security/pam_mysql.so: undefined symbol: make_scrambled_password saslauthd: PAM adding faulty module: pam_mysql.so saslauthd: DEBUG: auth_pam: pam_authenticate failed: Module is unknown saslauthd: do_auth : auth failure: [firstname.lastname@example.org] [service=smtp] [realm=testubuntu1604.com] [mech=pam] [reason=PAM auth error]
This used to work perfectly in Ubuntu 14.04.
Are there any changes in Ubuntu 16.04 regarding PAM authentication I should know about?