免费注册 查看新帖 |

Chinaunix

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

关于用二级域名建立postfix问题 急啊 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-25 14:57 |只看该作者 |倒序浏览
我想用一个2级域名建立邮件系统,如域名为bj.mydomain.com,我在postfix里面设置域名的地方全部写成bj.mydomain.com后,好像还是有问题,我同样的方法建立另外一个用1级域名的邮箱系统就收发没有问题,是不是用二级域名还要改些东西?
bj.mydomain.com在dns的A和MX记录指向也都设置了,ping bj.mydomain.com也都正确,而且我本域名中两个邮箱发测试邮件应该和dns没关系吧。
下面是我发送邮件的日志:

Mar 25 14:19:20 bj sendmail[29115]: o2P6JKn7029115: Authentication-Warning: bj.mydomain.com: apache set sender to wolf@bj.mydomain.com using -f
Mar 25 14:19:20 bj sendmail[29115]: o2P6JKn7029115: from=wolf@bj.mydomain.com, size=527, class=0, nrcpts=1, msgid=<2736.192.168.0.194.1269497960.squirrel@192.168.0.20>, relay=apache@localhost
Mar 25 14:19:20 bj postfix/smtpd[29116]: connect from localhost.localdomain[127.0.0.1]
Mar 25 14:19:20 bj postfix/smtpd[29116]: 83C286B10287: client=localhost.localdomain[127.0.0.1]
Mar 25 14:19:20 bj postfix/cleanup[29121]: 83C286B10287: message-id=<2736.192.168.0.194.1269497960.squirrel@192.168.0.20>
Mar 25 14:19:20 bj postfix/qmgr[29108]: 83C286B10287: from=<wolf@bj.mydomain.com>, size=952, nrcpt=1 (queue active)
Mar 25 14:19:20 bj sendmail[29115]: o2P6JKn7029115: to=wolf@bj.mydomain.com, ctladdr=wolf@bj.mydomain.com (607/607), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30527, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 83C286B10287)
Mar 25 14:19:20 bj postfix/qmgr[29108]: 83C286B10287: to=<wolf@bj.mydomain.com>, relay=none, delay=0.06, delays=0.05/0/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 25 14:19:20 bj postfix/smtpd[29116]: disconnect from localhost.localdomain[127.0.0.1]
Mar 25 14:19:20 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:19:20 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:19:20 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:19:20 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:19:22 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:19:22 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:21:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:21:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:21:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:21:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:23:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:23:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:23:05 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:23:05 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:23:07 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:23:07 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:26:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:26:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:26:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:26:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:27:54 bj dovecot: pop3-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=192.168.0.194, lip=192.168.0.20
Mar 25 14:27:54 bj dovecot: POP3(wolf@bj.mydomain.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mar 25 14:27:55 bj dovecot: pop3-login: Login: user=<tomzhang@bj.mydomain.com>, method=PLAIN, rip=192.168.0.194, lip=192.168.0.20
Mar 25 14:27:55 bj dovecot: POP3(tomzhang@bj.mydomain.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mar 25 14:31:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:31:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:31:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:31:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:36:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:36:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:36:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:36:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:41:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:41:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:41:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:41:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:46:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:46:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:46:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:46:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:51:04 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:51:04 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out
Mar 25 14:51:09 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 14:51:09 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out



为什吗在时间后面是bj而不是localhost?是因为这个原因导致发送的邮件找不到收件人地址?请帮忙看一下,谢谢

论坛徽章:
0
2 [报告]
发表于 2010-03-25 17:16 |只看该作者
下面是我用foxmail从tomzhang@bj.mydomain.comwolf@bj.mydomain.com发送一封邮件产生的日志:
Mar 25 17:08:05 bj postfix/smtpd[30364]: connect from unknown[192.168.0.194]
Mar 25 17:08:05 bj postfix/smtpd[30364]: D29306B10250: client=unknown[192.168.0.194], sasl_method=LOGIN, sasl_username=tomzhang@bj.mydomain.com
Mar 25 17:08:05 bj postfix/cleanup[30370]: D29306B10250: message-id=<201003251709441561443@bj.mydomain.com>
Mar 25 17:08:05 bj postfix/qmgr[29108]: D29306B10250: from=<tomzhang@bj.mydomain.com>, size=1632, nrcpt=1 (queue active)
Mar 25 17:08:05 bj postfix/smtp[30372]: fatal: unexpected command-line argument: ps=yes
Mar 25 17:08:05 bj postfix/smtpd[30364]: disconnect from unknown[192.168.0.194]
Mar 25 17:08:06 bj postfix/qmgr[29108]: warning: premature end-of-input on private/smtp-amavis socket while reading input attribute name
Mar 25 17:08:06 bj postfix/qmgr[29108]: warning: private/smtp-amavis socket: malformed response
Mar 25 17:08:06 bj postfix/master[29105]: warning: process /usr/libexec/postfix/smtp pid 30372 exit status 1
Mar 25 17:08:06 bj postfix/master[29105]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Mar 25 17:08:06 bj postfix/qmgr[29108]: D29306B10250: to=<wolf@bj.mydomain.com>, relay=none, delay=1.1, delays=0.04/1/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 25 17:08:15 bj dovecot: imap-login: Login: user=<wolf@bj.mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 25 17:08:15 bj dovecot: IMAP(wolf@bj.mydomain.com): Disconnected: Logged out

论坛徽章:
0
3 [报告]
发表于 2010-03-26 09:34 |只看该作者
结贴,一个配置项写错了,一个单词给写成2个了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP