歡迎您光臨本站 註冊首頁

postfix+extmail+extman安裝成功但是無法收到郵件

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix+extmail+extman安裝成功但是無法收到郵件

按照本版的貼子安裝成功postfix+extmai+extman
我新建了兩個用戶a1和a2,域名為test.com,用這兩個用戶登陸向彼此發郵件互相收不到。
然後我試著用a1給自己發也收不到,不過好像發送都是成功的。我是在本機上測試的。
另外需要說明的是:我沒有建立DNS,但是我是在本機上測試上需要DNS?


看了/var/log/maillog的日誌好像有如下問題,看不太懂。
請各位指教下,謝謝!

relay=maildrop, delay=57812, delays=57812/0.07/0/0.21, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/maildrop/bin/maildrop: Unable to change to home directory. )
《解決方案》

完整的/var/log/maillog

Nov 18 10:49:36 localhost postfix/pickup: 5A33C354B3E: uid=0 from=<root>
Nov 18 10:49:36 localhost postfix/cleanup: 5A33C354B3E: message-id=<20081118024936.5A33C354B3E@mail.test.com>
Nov 18 10:49:36 localhost postfix/qmgr: 5A33C354B3E: from=<root@test.com>, size=4561, nrcpt=1 (queue active)
Nov 18 10:49:36 localhost authdaemond: received userid lookup request: root@test.com
Nov 18 10:49:36 localhost authdaemond: authmysql: trying this module
Nov 18 10:49:36 localhost authdaemond: SQL query: SELECT username, password, "", '1000', '1000', concat('/var/mailbox',homedir), "", "", name, "" FROM mailbox WHERE username = "root@test.com"
Nov 18 10:49:36 localhost authdaemond: zero rows returned
Nov 18 10:49:36 localhost authdaemond: authmysql: REJECT - try next module
Nov 18 10:49:36 localhost authdaemond: FAIL, all modules rejected
Nov 18 10:49:36 localhost postfix/pipe: 5A33C354B3E: to=<root@test.com>, orig_to=<root>, relay=maildrop, delay=0.81, delays=0.76/0.01/0/0.03, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. )
Nov 18 10:49:36 localhost postfix/cleanup: 6FE32354B41: message-id=<20081118024936.6FE32354B41@mail.test.com>
Nov 18 10:49:36 localhost postfix/qmgr: 6FE32354B41: from=<>, size=6289, nrcpt=1 (queue active)
Nov 18 10:49:36 localhost postfix/bounce: 5A33C354B3E: sender non-delivery notification: 6FE32354B41
Nov 18 10:49:36 localhost postfix/qmgr: 5A33C354B3E: removed
Nov 18 10:49:36 localhost authdaemond: received userid lookup request: root@test.com
Nov 18 10:49:36 localhost authdaemond: authmysql: trying this module
Nov 18 10:49:36 localhost authdaemond: SQL query: SELECT username, password, "", '1000', '1000', concat('/var/mailbox',homedir), "", "", name, "" FROM mailbox WHERE username = "root@test.com"
Nov 18 10:49:36 localhost authdaemond: zero rows returned
Nov 18 10:49:36 localhost authdaemond: authmysql: REJECT - try next module
Nov 18 10:49:36 localhost authdaemond: FAIL, all modules rejected
Nov 18 10:49:36 localhost postfix/pipe: 6FE32354B41: to=<root@test.com>, relay=maildrop, delay=0.08, delays=0.04/0/0/0.03, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. )
Nov 18 10:49:36 localhost postfix/qmgr: 6FE32354B41: removed
Nov 18 10:54:41 localhost postfix/qmgr: D9F87354B16: from=<a1@test.com>, size=518, nrcpt=1 (queue active)
Nov 18 10:54:41 localhost postfix/qmgr: 69147354B1F: from=<a1@test.com>, size=546, nrcpt=1 (queue active)
Nov 18 10:54:41 localhost authdaemond: received userid lookup request: a1@test.com
Nov 18 10:54:41 localhost authdaemond: authmysql: trying this module
Nov 18 10:54:41 localhost authdaemond: received userid lookup request: a2@test.com
Nov 18 10:54:41 localhost authdaemond: authmysql: trying this module
Nov 18 10:54:41 localhost authdaemond: SQL query: SELECT username, password, "", '1000', '1000', concat('/var/mailbox',homedir), "", "", name, "" FROM mailbox WHERE username = "a1@test.com"
Nov 18 10:54:41 localhost authdaemond: Authenticated: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/var/mailboxtest.com/a1, address=a1@test.com, fullname=<null>, maildir=<null>, quota=<null>, options=<null>
Nov 18 10:54:41 localhost authdaemond: Authenticated: clearpasswd=<null>, passwd=$1$HgFrSg3O$oTl.wBnQEP6IMHL9AvFw41
Nov 18 10:54:41 localhost maildrop: Unable to change to home directory.
Nov 18 10:54:41 localhost authdaemond: SQL query: SELECT username, password, "", '1000', '1000', concat('/var/mailbox',homedir), "", "", name, "" FROM mailbox WHERE username = "a2@test.com"
Nov 18 10:54:41 localhost authdaemond: Authenticated: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/var/mailboxtest.com/a2, address=a2@test.com, fullname=a2, maildir=<null>, quota=<null>, options=<null>
Nov 18 10:54:41 localhost authdaemond: Authenticated: clearpasswd=<null>, passwd=$1$jdVKq0cp$44GpzrzrrN5abOuJLnaaF1
Nov 18 10:54:41 localhost maildrop: Unable to change to home directory.
Nov 18 10:54:41 localhost postfix/pipe: D9F87354B16: to=<a1@test.com>, relay=maildrop, delay=62033, delays=62033/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/maildrop/bin/maildrop: Unable to change to home directory. )
Nov 18 10:54:41 localhost postfix/pipe: 69147354B1F: to=<a2@test.com>, relay=maildrop, delay=62011, delays=62011/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/maildrop/bin/maildrop: Unable to change to home directory. )
《解決方案》

我maildrop的安裝過程
tar jxvf maildrop-2.0.4.tar.bz2

cd maildrop-2.0.4

ln -s /usr/local/courier-authlib/bin/courierauthconfig /usr/bin/courierauthconfig

./configure --prefix=/usr/local/maildrop --enable-sendmail=/usr/sbin/sendmail --enable-trusted-users='root vuser' --enable-syslog=1 --enable-maildirquota --enable-maildrop-uid=1000 --enable-maildrop-gid=1000 --with-trashquota --with-dirsync

make

make install

cp /usr/local/maildrop/bin/maildrop /usr/bin/

maildrop -v


vi /etc/maildroprc

添加
logfile "/var/log/maildrop.log"


touch /var/log/maildrop.log

chown vuser.vgroup /var/log/maildrop.log

cd /etc/postfix

newaliases

cp /d/main.cf /etc/postfix/

cp /d/master.cf /etc/postfix/

/usr/sbin/postfix start

echo "/usr/sbin/postfix start">>/etc/rc.local
《解決方案》

1.檢測下home directory 是否存在
2.maildrop是否有許可權進入這個dir
《解決方案》

就是實在搞不清楚這個home directory 應該是指哪個home directory ,能給點提示嗎,呵呵
《解決方案》

你的maildrop是通過authmysqlrc來獲得用戶的相關信息嗎?
《解決方案》

是的啦,不知道哪裡出了問題。
《解決方案》

authtest  your@mailadress.com

看看有沒有顯示出Home Directory
《解決方案》

感謝,感謝,終於明白錯哪裡了,系統配置文件裡面兩個文件夾名字中間少打了個"/", 兩層文件夾名合併成一個文件夾了,暈死,再次感謝

[ 本帖最後由 zz1313 於 2008-11-24 14:35 編輯 ]

[火星人 ] postfix+extmail+extman安裝成功但是無法收到郵件已經有469次圍觀

http://coctec.com/docs/service/show-post-26071.html