我的MDA吃信,發信端還收到too many hops的錯誤

Gentoo 管理、通用套件相關問題 (如 iptables、apache、*sql、*ftpd...) 請在此討論。

版主: Forums Team

我的MDA吃信,發信端還收到too many hops的錯誤

文章WhiteSox » 週一 9月 12, 2005 4:27 pm

情形大致如下:

從其它smtp伺服器寄信給它,在它的log檔中(/var/log/mail/current)可見到信已被收下放進active queue,接著qmgr將信從queue中刪除

然而,之後在/var/spool和/home中遍尋不著mbox檔,也就是說信從queue中消失後並沒有被MDA放進使用者信箱中

過不久,發信的smtp伺服器產生了Mail Delivery Failure的訊息,說too many hops.......

main.cf, master.cf, dovecot.conf改到爛了還是依然故我,只有在此請求大家給點靈感了。

main.cf的信箱相關參數:
home_mailbox = (預設值)
mail_spool_directory = (預設值)
mailbox_transport = (預設值)

master.cf的相關參數:
#==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil

dovecot.conf的相關設定:
default_mail_env = mbox:/var/spool/mail/%u
auth = default
auth_mechanisms = plain
auth_userdb = passwd
auth_passdb = shadow
auth_user = root

/var/log/mail/current的收信紀錄:
我實在不明白為什麼收一封信會有這麼一大橛log,更加不明白為什麼發一封信會變成三封信,更別提最後信都不見了
Sep 12 16:22:02 [postfix/smtpd] connect from unknown[192.168.10.249]
Sep 12 16:22:02 [postfix/smtpd] 4E0926BC3DE: client=unknown[192.168.10.249]
Sep 12 16:22:02 [postfix/cleanup] 4E0926BC3DE: message-id=<001d01c5b773$5e24f6d0$0f0aa8c0@randyhousesvr>
Sep 12 16:22:02 [postfix/qmgr] 4E0926BC3DE: from=<sender@sender.host.domain>, size=3235, nrcpt=1 (queue active)
Sep 12 16:22:02 [postfix/smtpd] disconnect from unknown[192.168.10.249]
Sep 12 16:22:09 [postfix/smtp] 4E0926BC3DE: to=<recipient@recipient.host.domain>, relay=recipient.host.domain[220.229.61.130], delay=7, status=sent (250 Message accepted for delivery)
Sep 12 16:22:09 [postfix/qmgr] 4E0926BC3DE: removed

Sep 12 16:22:12 [postfix/smtpd] connect from unknown[192.168.10.249]
Sep 12 16:22:12 [postfix/smtpd] 1009F6BC3DE: client=unknown[192.168.10.249]
Sep 12 16:22:12 [postfix/cleanup] 1009F6BC3DE: message-id=<001d01c5b773$5e24f6d0$0f0aa8c0@randyhousesvr>
Sep 12 16:22:12 [postfix/qmgr] 1009F6BC3DE: from=<sender@sender.host.domain>, size=3837, nrcpt=1 (queue active)
Sep 12 16:22:12 [postfix/smtpd] disconnect from unknown[192.168.10.249]
Sep 12 16:22:13 [postfix/smtp] 1009F6BC3DE: to=<recipient@recipient.host.domain>, relay=recipient.host.domain[220.229.61.130], delay=1, status=sent (250 Message accepted for delivery)
Sep 12 16:22:13 [postfix/qmgr] 1009F6BC3DE: removed

Sep 12 16:22:16 [postfix/smtpd] connect from unknown[192.168.10.249]
Sep 12 16:22:16 [postfix/smtpd] 090556BC3DE: client=unknown[192.168.10.249]
Sep 12 16:22:16 [postfix/cleanup] 090556BC3DE: message-id=<001d01c5b773$5e24f6d0$0f0aa8c0@randyhousesvr>
Sep 12 16:22:16 [postfix/qmgr] 090556BC3DE: from=<sender@sender.host.domain>, size=4439, nrcpt=1 (queue active)
Sep 12 16:22:16 [postfix/smtpd] disconnect from unknown[192.168.10.249]
Sep 12 16:22:16 [postfix/smtp] 090556BC3DE: to=<recipient@recipient.host.domain>, relay=www2.docubank.com.tw[220.229.61.130], delay=0, status=sent (250 Message accepted for delivery)
Sep 12 16:22:16 [postfix/qmgr] 090556BC3DE: removed


送信伺服器的退信通知:
----- The following addresses had permanent fatal errors ----- <recipient@recipient.host.domain>
(reason: 554 5.4.6 Too many hops)

----- Transcript of session follows -----
554 5.4.6 Too many hops 27 (25 max): from <sender@sender.host.domain> via localhost, to <recipient@recipient.host.domain>

如果還有什麼需要欠的缺的,請儘管要求我補充說明。

喔!對了,起動Postfix時有以下一條提示訊息:
You don't appear to have the mysql database installed yet.
最後由 WhiteSox 於 週一 9月 12, 2005 5:42 pm 編輯,總共編輯了 1 次。
WhiteSox
 
文章: 6
註冊時間: 週五 9月 09, 2005 2:33 pm

網路環境

文章WhiteSox » 週一 9月 12, 2005 5:35 pm

     ---------
    | 防火牆 + DNS | <-- 兩個主權網域的DNS
     ---------
         |
         |
    ---------
   | 防毒郵件閘道器 | <-- 一台e-mail relay server
    ---------
     /        \
    /          \
  -----------   -----------
 |發信用RedHat+Postfix|  |收信的gentoo+Postfix |
 |伺服器        |   |+ dovecot伺服器   |
  -----------   ------------
  ^                 ^
  |____網域A             |______網域B
WhiteSox
 
文章: 6
註冊時間: 週五 9月 09, 2005 2:33 pm

文章paar » 週二 9月 13, 2005 5:36 pm

有點複雜的環境..
如果用外面(如, gmail)的 mail server 寄進來呢?
還有 mx record 呢?
叫我老帕好了!
圖檔
頭像
paar
 
文章: 1154
註冊時間: 週四 1月 30, 2003 10:53 am
來自: 打狗市


回到 Gentoo 服務與管理

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 6 位訪客

cron