dovecot のユーザ認証
参考 URL
http://wiki2.dovecot.org/AuthDatabase/PasswdFile
http://www.dovecot.jp/wiki/BasicConfiguration.txt
http://knowledge4linux.blogspot.jp/2013/08/dovecot-passwd-file.html
http://www.1stdegree.co.jp/blog/yokomaku/?p=83
(1) 変更前
[root@LVS ~]# doveconf -n # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.el6.x86_64 x86_64 CentOS release 6.4 (Final) disable_plaintext_auth = no mail_access_groups = mail mail_location = mbox:~/mail:INBOX=/var/mail/%u mbox_write_locks = fcntl passdb { driver = pam } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } [root@LVS ~]#
(2) ユーザの作成
# useradd test02 # id test02 uid=503(test02) gid=503(test02) 所属グループ=503(test02) #
(3) passwd-file の作成
# echo "test02:{PLAIN}test02" > passwd.dovecot # mv passwd.dovecot /etc/dovecot
(4) /etc/dovecot/conf.d/auth-system.conf.ext の変更
: : passdb { args = /etc/dovecot/passwd.dovecot driver = passwd-file } : : userdb { driver = passwd } : :
(5) 設定変更後
# doveconf -n # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.el6.x86_64 x86_64 CentOS release 6.4 (Final) disable_plaintext_auth = no mail_access_groups = mail mail_location = mbox:~/mail:INBOX=/var/mail/%u mbox_write_locks = fcntl passdb { args = /etc/dovecot/passwd.dovecot driver = passwd-file } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } #