免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5544 | 回复: 8
打印 上一主题 下一主题

[Mail] postfix+extmail+extman安装成功但是无法收到邮件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-18 18:36 |只看该作者 |倒序浏览
按照本版的贴子安装成功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. )

论坛徽章:
0
2 [报告]
发表于 2008-11-18 19:08 |只看该作者
完整的/var/log/maillog

Nov 18 10:49:36 localhost postfix/pickup[5186]: 5A33C354B3E: uid=0 from=<root>
Nov 18 10:49:36 localhost postfix/cleanup[6068]: 5A33C354B3E: message-id=<20081118024936.5A33C354B3E@mail.test.com>
Nov 18 10:49:36 localhost postfix/qmgr[5185]: 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[6077]: 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[6068]: 6FE32354B41: message-id=<20081118024936.6FE32354B41@mail.test.com>
Nov 18 10:49:36 localhost postfix/qmgr[5185]: 6FE32354B41: from=<>, size=6289, nrcpt=1 (queue active)
Nov 18 10:49:36 localhost postfix/bounce[6081]: 5A33C354B3E: sender non-delivery notification: 6FE32354B41
Nov 18 10:49:36 localhost postfix/qmgr[5185]: 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[6077]: 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[5185]: 6FE32354B41: removed
Nov 18 10:54:41 localhost postfix/qmgr[5185]: D9F87354B16: from=<a1@test.com>, size=518, nrcpt=1 (queue active)
Nov 18 10:54:41 localhost postfix/qmgr[5185]: 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[4766]: 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[4768]: Unable to change to home directory.
Nov 18 10:54:41 localhost postfix/pipe[4764]: 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[4765]: 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. )

论坛徽章:
0
3 [报告]
发表于 2008-11-18 19:12 |只看该作者
我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

论坛徽章:
0
4 [报告]
发表于 2008-11-18 23:11 |只看该作者
1.检测下home directory 是否存在
2.maildrop是否有权限进入这个dir

论坛徽章:
0
5 [报告]
发表于 2008-11-19 11:34 |只看该作者
就是实在搞不清楚这个home directory 应该是指哪个home directory ,能给点提示吗,呵呵

论坛徽章:
0
6 [报告]
发表于 2008-11-19 22:19 |只看该作者
你的maildrop是通过authmysqlrc来获得用户的相关信息吗?

论坛徽章:
0
7 [报告]
发表于 2008-11-20 13:35 |只看该作者
是的啦,不知道哪里出了问题。

论坛徽章:
0
8 [报告]
发表于 2008-11-20 14:48 |只看该作者
authtest  your@mailadress.com

看看有没有显示出Home Directory

论坛徽章:
0
9 [报告]
发表于 2008-11-24 13:28 |只看该作者
感谢,感谢,终于明白错哪里了,系统配置文件里面两个文件夹名字中间少打了个"/", 两层文件夹名合并成一个文件夹了,晕死,再次感谢

[ 本帖最后由 zz1313 于 2008-11-24 14:35 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP