Configuring pam
We edit /etc/pam.d/imap and optionally copy it to smtp and pop:
cp /etc/pam.d/imap /etc/pam.d/pop
cp /etc/pam.d/imap /etc/pam.d/smtp
For user auth trough *mysql*:
account required pam_mysql.so user=mail passwd=secret host=localhost db=mail
auth sufficient pam_mysql.so user=mail passwd=yourpass host=localhost db=mail
Ok, so this will use a database in localhost mysql server with name mail user mail
and pass yourpass.
And this for *unix-like* auth.
auth sufficient pam_unix_auth.so
account sufficient pam_unix_acct.so
This way all unix accounts will have access.
|