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 } userdb { driver = passwd-file args = /etc/dovecot/cram-md5.pwd }
# touch /etc/dovecot/cram-md5.pwd # chown dovecot.dovecot /etc/dovecot/cram-md5.pwd # chmod 0600 /etc/dovecot/cram-md5.pwd
# doveadm pw -s cram-md5
foo:{CRAM-MD5}82f58f38c9523ab9b285bdd382d7a0bcf2794beb6cb04a84b924678a6cd232d5:500:500::/home/foo
# /etc/init.d/dovecot restart