主题: 新增域名设置为Backup mx的问题
我默认域名为abc.com,同时增加了ccc.com,ccc选择了backup mx,activity,transport设置为relay,ccc这个域名在另外一台机器上,只是想那iredmail做ccc的mail gw而已。
目前的问题是abc.com的user一切正常,但所有发到此台机器,域名为ccc.com全部被iredmail拒收,log上看是查无此域名,哪位同学能帮忙,还有哪些地方需要设置呢?
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
iRedMail 开源邮件服务解决方案 » iRedMail 技术支持 » 新增域名设置为Backup mx的问题
我默认域名为abc.com,同时增加了ccc.com,ccc选择了backup mx,activity,transport设置为relay,ccc这个域名在另外一台机器上,只是想那iredmail做ccc的mail gw而已。
目前的问题是abc.com的user一切正常,但所有发到此台机器,域名为ccc.com全部被iredmail拒收,log上看是查无此域名,哪位同学能帮忙,还有哪些地方需要设置呢?
在你的服务器和发件方的服务器上看看日志,怎么也得留下点日志信息吧
发件方的日志(Mdaemon 192.168.103.1):
Thu 2010-01-14 11:01:20: Parsing Message <d:\mdaemon\remoteq\pd50002971811.msg>
Thu 2010-01-14 11:01:20: From: david@tl.com.cn
Thu 2010-01-14 11:01:20: To: david@ccc.com
Thu 2010-01-14 11:01:20: Subject: RE: test2
Thu 2010-01-14 11:01:20: Message-ID: <003101ca94c5$dee75090$9cb5f1b0$@sun@sha.phoenixintl.com.cn>
Thu 2010-01-14 11:01:20: MX-record resolution of [ccc.com] in progress (DNS Server: 8.8.8.8)...
Thu 2010-01-14 11:01:20: Match to MXCACHE.DAT file:
Thu 2010-01-14 11:01:20: P=005 D=ccc.comTTL=(0) MX=[ccc.com]
Thu 2010-01-14 11:01:20: Attempting MX: P=005 D=ccc.com TTL=(0) MX=[ccc.com]
Thu 2010-01-14 11:01:20: Attempting SMTP connection to [ccc.com : 25]
Thu 2010-01-14 11:01:20: Match to D:\MDAEMON\APP\HOSTS file - ccc.com= 192.168.103.199
Thu 2010-01-14 11:01:20: Host [ccc.com] resolved to [192.168.103.199]
Thu 2010-01-14 11:01:20: Waiting for socket connection...
Thu 2010-01-14 11:01:20: Socket connection established (192.168.103.1 : 2695 -> 192.168.103.199 : 25)
Thu 2010-01-14 11:01:20: Waiting for protocol initiation...
Thu 2010-01-14 11:01:20: <-- 220 mail.abc.com ESMTP iRedMail
Thu 2010-01-14 11:01:20: --> EHLO mail.tl.com.cn
Thu 2010-01-14 11:01:20: <-- 250-mail.abc.com
Thu 2010-01-14 11:01:20: <-- 250-PIPELINING
Thu 2010-01-14 11:01:20: <-- 250-SIZE 15728640
Thu 2010-01-14 11:01:20: <-- 250-ETRN
Thu 2010-01-14 11:01:20: <-- 250-STARTTLS
Thu 2010-01-14 11:01:20: <-- 250-AUTH PLAIN LOGIN
Thu 2010-01-14 11:01:20: <-- 250-AUTH=PLAIN LOGIN
Thu 2010-01-14 11:01:20: <-- 250-ENHANCEDSTATUSCODES
Thu 2010-01-14 11:01:20: <-- 250-8BITMIME
Thu 2010-01-14 11:01:20: <-- 250 DSN
Thu 2010-01-14 11:01:20: --> STARTTLS
Thu 2010-01-14 11:01:20: <-- 220 2.0.0 Ready to start TLS
Thu 2010-01-14 11:01:20: SSL negotiation successful (TLS 1.0, 1024 bit key exchange, 128 bit RC4 encryption)
Thu 2010-01-14 11:01:20: --> EHLO mail.tl.com.cn
Thu 2010-01-14 11:01:20: <-- 250-mail.abc.com
Thu 2010-01-14 11:01:20: <-- 250-PIPELINING
Thu 2010-01-14 11:01:20: <-- 250-SIZE 15728640
Thu 2010-01-14 11:01:20: <-- 250-ETRN
Thu 2010-01-14 11:01:20: <-- 250-AUTH PLAIN LOGIN
Thu 2010-01-14 11:01:20: <-- 250-AUTH=PLAIN LOGIN
Thu 2010-01-14 11:01:20: <-- 250-ENHANCEDSTATUSCODES
Thu 2010-01-14 11:01:20: <-- 250-8BITMIME
Thu 2010-01-14 11:01:20: <-- 250 DSN
Thu 2010-01-14 11:01:20: --> MAIL From:<david@tl.com.cn> SIZE=9050
Thu 2010-01-14 11:01:20: <-- 250 2.1.0 Ok
Thu 2010-01-14 11:01:20: --> RCPT To:<david@ccc.com>
Thu 2010-01-14 11:01:20: <-- 450 4.1.2 <david@ccc.com>: Recipient address rejected: Domain not found
Thu 2010-01-14 11:01:20: --> QUIT
iredmail(ip:192.168.103.199)日志:
Jan 14 11:10:04 mail postfix/smtpd[5026]: connect from unknown[192.168.103.1]
Jan 14 11:10:04 mail postfix/smtpd[5026]: NOQUEUE: reject: RCPT from unknown[192.168.103.1]: 450 4.1.2 <david@ccc.com>: Recipient address rejected: Domain not found; from=<david@tl.com.cn> to=<david@ccc.com> proto=ESMTP helo=<mail.tl.com.cn>
Jan 14 11:10:04 mail postfix/smtpd[5026]: disconnect from unknown[192.168.103.1]
麻烦老大给看看,谢谢了。
Thu 2010-01-14 11:01:20: <-- 450 4.1.2 <david@ccc.com>: Recipient address rejected: Domain not found
你的服务器上无法查到这个 ccc.com 的域。
ccc.com这个域我是用postfixadmin加进去的,我看了mysql,表里面也有的啊,真是奇怪了。
把表里的内容贴出来,否则无法知道你里头的内容是否正确
abc.com 0 0 0 0 dovecot 0 1024 0 0 0000-00-00 00:00:00 0000-00-00 00:00:00 9999-12-31 00:00:00 1
ccc.com -1 -1 -1 0 relay 1 1024 0 0 2010-01-14 11:03:40 2010-01-14 11:10:39 9999-12-31 00:00:00 1
eee.com -1 -1 -1 0 relay 1 1024 0 0 2010-01-14 11:03:48 2010-01-14 11:10:41 9999-12-31 00:00:00 1
把对应的字段名也给出来啊
| domain | description | disclaimer | aliases | mailboxes | maxquota | quota | transport | backupmx | defaultuserquota | minpasswordlength | maxpasswordlength | created | modified | expired | active |
+-----------------------+-------------+------------+---------+-----------+----------+-------+-----------+----------+------------------+-------------------+-------------------+---------------------+---------------------+---------------------+--------+
| abc.com | | | 0 | 0 | 0 | 0 | dovecot | 0 | 1024 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | 9999-12-31 00:00:00 | 1 |
|ccc.com | | | -1 | -1 | -1 | 0 | relay | 1 | 1024 | 0 | 0 | 2010-01-14 11:03:40 | 2010-01-14 11:10:39 | 9999-12-31 00:00:00 | 1 |
| eee.com| | | -1 | -1 | -1 | 0 | relay | 1 | 1024 | 0 | 0 | 2010-01-14 11:03:48 | 2010-01-14 11:10:41 | 9999-12-31 00:00:00 | 1 |
+-----------------------+-------------+------------+---------+-----------+----------+-------+-----------+----------+------------------+-------------------+-------------------+---------------------+---------------------+---------------------+--------+
SQL 里似乎没错。
直接用 postmap 命令查一下是否能找到 ccc 这个域名:
# postmap -q 'ccc.com' mysql:/etc/postfix/mysql_relay_domains.cf
[root@mail iRedMail-0.5.1]# postmap -q 'ccc.com' mysql:/etc/postfix/mysql_relay_domains.cf
ccc.com
老大,按你的指示,用psotmap可以出来正确结果
我虚拟了一个2.com,用postfixadmin设置到iredmail,然后测试了一下,居然ok,太奇怪了,为什么ccc.com就不行呢
iRedMail 开源邮件服务解决方案 » iRedMail 技术支持 » 新增域名设置为Backup mx的问题
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2010 PunBB.
页面生成时间 0.007 秒, 共执行查询 64 条