dovecot配置

By | 2013年5月24日

安装

yum install pam-devel  mysql-devel
./configure --prefix=/opt/dovecot --with-pam --with-shadow --with-mysql --with-sqlite
make && make install

/opt/dovecot/etc/dovecot/dovecot.conf

protocols = pop3
listen = *

/opt/dovecot/etc/dovecot/conf.d/10-auth.conf

disable_plaintext_auth = no
auth_mechanisms = plain

/opt/dovecot/etc/dovecot/conf.d/10-ssl.conf

ssl = no
#注释下面两个参数
#ssl_cert
#ssl_key

/opt/dovecot/etc/dovecot/conf.d/10-mail.conf

mail_location = mbox:~/mail:INBOX=/var/mail/%u

/etc/pam.d/dovecot

auth required pam_unix.so
account required pam_unix.so