是這樣子的小弟的linux版本為centos 從4.4 update到4.7(yum的方式做的)本來設定完postfix測試寄收信都是正常的...
但是裝完spamassassin後..卻發現無法收到信且寄信出去也無任何資料(outlook express寄送無任何錯誤訊息)搞了一早上還是沒反應
但是後來不知怎麼的有了一點反應寄出去的信都會收到這樣子的退信
標題:
Undelivered Mail Returned to Sender內容:
This is the Postfix program at host mail.xxx.xxx.xxx
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<
spam@mail.xxx.xxx.xxx>: service unavailable
使用tail -f /var/log/maillog查看log....卻發現log訊息一直在跑不停....由於太多了所以擷取一部分
tail -n30 /var/log/maillog
Sep 23 16:27:09 mail sendmail[32377]: m8N8R8o1032377: m8N8R8o2032377: DSN: Too many hops 27 (25 max): from MAILER-DAEMON@mail.xxx.xxx.xxx via localhost, to MAILER-DAEMON@mail.xxx.xxx.xxx
Sep 23 16:27:09 mail sendmail[32400]: m8N8R8po032400: Authentication-Warning: mail.xxx.xxx.xxx : nobody set sender to MAILER-DAEMON@mail.xxx.xxx.xxx using -f
Sep 23 16:27:09 mail postfix/smtpd[32387]: connect from mail.xxx.xxx.xxx [127.0.0.1]
Sep 23 16:27:09 mail postfix/smtpd[32387]: 179F320649: client=mail.xxx.xxx.xxx [127.0.0.1]
Sep 23 16:27:09 mail postfix/cleanup[32402]: 179F320649: message-id=<200809230827.m8N8R8o2032377@mail.xxx.xxx.xxx >
Sep 23 16:27:09 mail postfix/smtpd[32403]: connect from mail.xxx.xxx.xxx [127.0.0.1]
Sep 23 16:27:09 mail postfix/qmgr[31491]: 179F320649: from=<>, size=128943, nrcpt=1 (queue active)
Sep 23 16:27:09 mail sendmail[32377]: m8N8R8o2032377: to=MAILER-DAEMON@mail.xxx.xxx.xxx , delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=155566, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 179F320649)
Sep 23 16:27:09 mail postfix/smtpd[32403]: 28D0D2064A: client=mail.xxx.xxx.xxx [127.0.0.1]
Sep 23 16:27:09 mail spamd[31383]: spamd: connection from mail.xxx.xxx.xxx [127.0.0.1] at port 43312
Sep 23 16:27:09 mail spamd[31383]: spamd: setuid to nobody succeeded
Sep 23 16:27:09 mail spamd[31383]: spamd: creating default_prefs: //.spamassassin/user_prefs
Sep 23 16:27:09 mail spamd[31383]: config: cannot write to //.spamassassin/user_prefs: 沒有此一檔案或目錄
Sep 23 16:27:09 mail spamd[31383]: spamd: failed to create readable default_prefs: //.spamassassin/user_prefs
Sep 23 16:27:09 mail postfix/smtpd[32387]: disconnect from mail.xxx.xxx.xxx [127.0.0.1]
Sep 23 16:27:09 mail postfix/pipe[31495]: D23D820639: to=<MAILER-DAEMON@mail.xxx.xxx.xxx >, relay=spamassassin, delay=10, status=bounced (service unavailable)
Sep 23 16:27:09 mail postfix/qmgr[31491]: D23D820639: removed
Sep 23 16:27:09 mail spamd[31383]: spamd: processing message <200809230827.m8N8R8o2032377@mail.xxx.xxx.xxx > for nobody:99
Sep 23 16:27:09 mail postfix/cleanup[32402]: 28D0D2064A: message-id=<200809230826.m8N8QaBG032300@mail.xxx.xxx.xxx >
Sep 23 16:27:09 mail postfix/qmgr[31491]: 28D0D2064A: from=<>, size=173766, nrcpt=1 (queue active)
Sep 23 16:27:09 mail sendmail[32386]: m8N8R8qI032386: to=MAILER-DAEMON@mail.xxx.xxx.xxx , delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=200361, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 28D0D2064A)
Sep 23 16:27:09 mail spamd[31902]: spamd: connection from mail.xxx.xxx.xxx [127.0.0.1] at port 43313
Sep 23 16:27:09 mail spamd[31902]: spamd: setuid to nobody succeeded
Sep 23 16:27:09 mail spamd[31902]: spamd: creating default_prefs: //.spamassassin/user_prefs
Sep 23 16:27:09 mail spamd[31902]: config: cannot write to //.spamassassin/user_prefs: 沒有此一檔案或目錄
Sep 23 16:27:09 mail spamd[31902]: spamd: failed to create readable default_prefs: //.spamassassin/user_prefs
Sep 23 16:27:09 mail postfix/smtpd[32403]: disconnect from mail.xxx.xxx.xxx [127.0.0.1]
Sep 23 16:27:09 mail postfix/pipe[31494]: B0F3C2063D: to=<MAILER-DAEMON@mail.xxx.xxx.xxx >, relay=spamassassin, delay=7, status=sent (mail.xxx.xxx.xxx )
Sep 23 16:27:09 mail postfix/qmgr[31491]: B0F3C2063D: removed
Sep 23 16:27:09 mail spamd[31902]: spamd: processing message <200809230826.m8N8QaBG032300@mail.xxx.xxx.xxx > for nobody:99
由上面我有看到有本機的ip出現以及
沒有此一檔案或目錄的錯誤訊息產生..不過說實在的小弟不知該從何下手改正這個問題...
以下是netstat -tnl結果如下:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:621 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 xxx.xxx.xxx.xxx:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 :::995 :::* LISTEN
tcp 0 0 :::110 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
還請有經驗的朋友指點一二...謝謝