Dovecot (POP3) 除錯

連線pop3 (port110)非加密連線產生錯誤:

錯誤訊息(pop3 client):
Plaintext authentication disallowed on non-secure (SSL/TLS) connections.

修正方式:
#vi /etc/dovecot/conf.d/10-auth.conf
設定值
disable-plaintext_auth = no
重啟服務
#service dovecot restart

 

錯誤訊息(/var/log/maillog):
dovecot: pop3(hostname): Error: user whoever: Initialization failed: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/whoever

修正方式:
#vi /etc/dovecot/conf.d/10-mail.conf
設定值
mail_location = mbox:~/mail:INBOX=/var/mail/%u
重啟服務
#service dovecot restart

 

錯誤訊息(/var/log/maillog):
dovecot: pop3(hostname): Error: chown(/home/whoever/mail/.imap/INBOX, -1, 12(mail)) failed: Operation not permitted (egid=500(whoever), group based on /var/mail/whoever)
dovecot: pop3(hostname): Error: mkdir(/home/whoever/mail/.imap/INBOX) failed: Operation not permitted
dovecot: pop3(hostname): Error: Couldn’t open INBOX: Internal error occurred. Refer to server log for more information.
dovecot: pop3(hostname): Couldn’t open INBOX top=0/0, retr=0/0, del=0/0, size=0

修正方式:
#vi /etc/dovecot/conf.d/10-mail.conf
設定值
mail_privileged_group = mail
重啟服務
#service dovecot restart