作者 主題: Postfix奇怪的问题  (閱讀 2577 次)

0 會員 與 1 訪客 正在閱讀本文。

van416

  • 懷疑的國中生
  • **
  • 文章數: 48
    • 檢視個人資料
Postfix奇怪的问题
« 於: 2012-02-16 18:05 »
环境:centOS-5.5  postfix
今天上午还可以收发MAIL,到了今天下午不知道为什么,发不了了.
/usr/sbin/postfix start 好多次了,都是这样的..
linux shadow 内部的可以发送接收:
里面有两个用户,一个chao,一个jack,可以发送与接收,但是就是转发不了nisshotech.com.cn..
如下附上main.cf与错误信息.
请各位大大帮忙解决一下..谢谢了

用mailq提示的错误如下:
代碼: [選擇]
[root@niss ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1A5A8168036*     788 Thu Feb 16 18:13:20  chao@mail.niss.com
                                         chao_fan@nisshotech.com.cn

1C1B516802A      800 Thu Feb 16 18:06:36  chao@mail.niss.com
(delivery temporarily suspended: Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
                                         chao_fan@nisshotech.com.cn

-- 2 Kbytes in 2 Requests.

感觉很纳闷:
于是: grep -v "^#" /etc/postfix/main.cf 出来,也没有发现什么问题.
代碼: [選擇]
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mail.niss.com
mydomain = niss.com
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
relay_domains = $mydestination
relay_domains = 163.com
relay_domains = nisshotech.com.cn
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
message_size_limit = 15728640

另外,我的dns服务器完全正常,给163发MAIL也是显示如下:
代碼: [選擇]
[root@niss ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1A5A8168036      788 Thu Feb 16 18:13:20  chao@mail.niss.com
(Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
                                         chao_fan@nisshotech.com.cn

1C1B516802A      800 Thu Feb 16 18:06:36  chao@mail.niss.com
(Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
                                         chao_fan@nisshotech.com.cn

ABE28168039      762 Thu Feb 16 18:34:23  chao@mail.niss.com
(Host or domain name not found. Name service error for name=vip.163.com type=MX: Host not found, try again)
                                         php@vip.163.com

-- 4 Kbytes in 3 Requests.

maillog如下:
代碼: [選擇]
tail /var/log/maillog
Feb 16 18:34:26 niss dovecot: pop3-login: Login: user=<jack>, method=PLAIN, rip=::ffff:192.168.0.192, lip=::ffff:192.168.0.201
Feb 16 18:34:26 niss dovecot: POP3(chao): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Feb 16 18:34:26 niss dovecot: POP3(jack): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Feb 16 18:34:43 niss postfix/smtp[3138]: ABE28168039: to=<php@vip.163.com>, relay=none, delay=20, delays=0.06/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=vip.163.com type=MX: Host not found, try again)
Feb 16 18:44:34 niss postfix/qmgr[2769]: 1C1B516802A: from=<chao@mail.niss.com>, size=800, nrcpt=1 (queue active)
Feb 16 18:44:34 niss postfix/qmgr[2769]: ABE28168039: from=<chao@mail.niss.com>, size=762, nrcpt=1 (queue active)
Feb 16 18:44:54 niss postfix/smtp[3182]: ABE28168039: to=<php@vip.163.com>, relay=none, delay=631, delays=611/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=vip.163.com type=MX: Host not found, try again)
Feb 16 18:44:54 niss postfix/smtp[3183]: 1C1B516802A: to=<chao_fan@nisshotech.com.cn>, relay=none, delay=2299, delays=2279/0.03/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
Feb 16 18:49:34 niss postfix/qmgr[2769]: 1A5A8168036: from=<chao@mail.niss.com>, size=788, nrcpt=1 (queue active)
Feb 16 18:49:54 niss postfix/smtp[3197]: 1A5A8168036: to=<chao_fan@nisshotech.com.cn>, relay=none, delay=2195, delays=2175/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
« 上次編輯: 2012-02-16 18:42 由 van416 »

rainday

  • 鑽研的研究生
  • *****
  • 文章數: 738
  • 性別: 男
  • enhancing and optimizing
    • 檢視個人資料
Re: Postfix奇怪的问题
« 回覆 #1 於: 2012-02-19 04:45 »
你的dns local解晰正常嗎?
mailq已經寫了原因,dns解晰不到mx
<0  =_=  Don't learn to hack , hack to learn.