centos 6.4 dovecot

http://tonyhack.familyds.net/wordpress/?s=postfix

dovecot 設定檔異常排除

1
protocols = imap pop3
(啟用 IMAP POP3)

1
disable_plaintext_auth = no —> 取消明碼傳輸
(maillog出現:pop3-login: Disconnected (tried to use disabled plaintext auth解決方式 )

1
mail_location = mbox:~/mail:INBOX=/var/mail/%u
(maillog出現:Initialization failed: mail_location not set and autodetection failed: Mail storage)

錯誤log

May 11 10:58:54 dns dovecot: pop3(ben): Error: chown(/home/ben/mail/.imap/INBOX, -1, 12(mail)) failed: Operation not permitted (egid=500(ben), group based on /var/mail/ben)
May 11 10:58:54 dns dovecot: pop3(ben): Error: mkdir(/home/ben/mail/.imap/INBOX) failed: Operation not permitted

解決方式

1
mkdir -p /etc/skel/mail/.imap/INBOX
利用家目錄範本解決,以後新增使用者就會自行建立

查詢信件問題可以用tcpdump來檢查問題

1
2
3
4
5
6
7
8
[root@bk-mail postfix]# tcpdump | grep 61.220.15.209
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
15:47:50.106209 IP google-public-dns-a.google.com.domain > 192.168.1.20.41450: 24712 1/0/0 A 61.220.15.209 (59)
15:48:15.394267 IP google-public-dns-a.google.com.domain > 192.168.1.20.33003: 33594 1/0/0 A 61.220.15.209 (59)
^[[A^[[A^X^[[A^C995 packets captured
996 packets received by filter
0 packets dropped by kernel
或是tail來觀察mail流量

1
2
[root@bk-mail etc]# tail -f /var/log/maillog
Mar 23 15:58:08 localhost postfix/smtp[16238]: 5036D2E0DEA: to=, relay

本篇發表於 未分類。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>