Tag: CentOS6/Doveot
# yum install dovecot
# /etc/rc.d/init.d/dovecot start # chkconfig dovecot on
protocols = imap
service imap-login { inet_listener imap { port = 0 } inet_listener imaps { port = 993 ssl = yes } }
ssl = yes
disable_plaintext_auth = no auth_mechanisms = cram-md5 #!include auth-system.conf.ext !include auth-passwdfile.conf.ext
/etc/dovecot/conf.d/auth-passwdfile.conf.extを編集。
passdb { driver = passwd-file # args = scheme=CRYPT username_format=%u /etc/dovecot/users args = /etc/dovecot/cram-md5.pwd }
# touch /etc/dovecot/cram-md5.pwd # chmod 0600 /etc/dovecot/cram-md5.pwd
# doveadm pw -s cram-md5
username:passwordhash
# /etc/init.d/dovecot restart