The install proccess is pretty straightforward. However if you want to use PAM you need to add to the configure script the –with-pam option. Also you may need to “yum install pam-devel”. Also you may need to enter into /etc/pam.d a file called dovecot for instance (if this is the user under which dovecot will run) with these contents:
auth required pam_unix.so nullok
account required pam_unix.so
The configuration file is a bit more complicated.
Sample dovecot.conf file:
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
log_path = /var/log/dovecot
passdb {
driver = pam
}
protocols = imap pop3
service auth {
user = dovecot
}
service imap-login {
process_limit = 128
process_min_avail = 3
service_count = 1
user = dovecot
}
service pop3-login {
process_limit = 128
process_min_avail = 3
service_count = 1
user = dovecot
}
ssl = no
userdb {
driver = passwd
}
protocol lda {
postmaster_address = [email protected]
}