歡迎您光臨本站 註冊首頁

qmail 伺服器隊列被塞滿,發送郵件延遲5小時 求助!

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

qmail 伺服器隊列被塞滿,發送郵件延遲5小時 求助!

5.1黃金周前公司同事反映說郵件發送出去后對方收不到,後來我在過節期間測試的確存在這個問題
就是發送給sina或163發送出去后短時間收不到延遲了好幾個小時才收到,但是接受郵件沒有問題短時間
就能收到。
後來察看maillog發現 remote 隊列總是滿滿的! 公司節假日都休息根本沒有什麼業務郵件,怎麼隊列會是滿的呢?如果是垃圾郵件造成的話 該如何去應對呢? 謝謝指教 下面是一段maillog
May  6 04:59:59 localhost qmail: 1178398799.741474 new msg 4162108
May  6 04:59:59 localhost qmail: 1178398799.742027 info msg 4162108: bytes 18865 from <yslcbitr@tzkbgkuw.net> qp 31170 uid 0
May  6 04:59:59 localhost qmail: 1178398799.747392 starting delivery 140808: msg 4162108 to local nihin.com.cn-yanglm@nihin.com.cn
May  6 04:59:59 localhost qmail: 1178398799.747737 status: local 1/40 remote 40/40
May  6 04:59:59 localhost qmail: 1178398799.765246 delivery 140808: failure: Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/
May  6 04:59:59 localhost qmail: 1178398799.765933 status: local 0/40 remote 40/40
May  6 04:59:59 localhost qmail: 1178398799.776128 bounce msg 4162108 qp 31204
May  6 04:59:59 localhost qmail: 1178398799.776424 end msg 4162108
May  6 04:59:59 localhost qmail: 1178398799.777083 new msg 4162965
May  6 04:59:59 localhost qmail: 1178398799.777431 info msg 4162965: bytes 19415 from <> qp 31204 uid 507
May  6 05:00:02 localhost qmail: 1178398802.560245 delivery 140799: failure: Sorry,_I_couldn't_find_any_host_by_that_name._(#4.1.2)/I'm_not_going_to_try_again;_this_message_has_been_in_the_queue_too_long./
May  6 05:00:02 localhost qmail: 1178398802.560410 status: local 0/40 remote 39/40
May  6 05:00:02 localhost qmail: 1178398802.616035 bounce msg 4166332 qp 31205
May  6 05:00:02 localhost qmail: 1178398802.616179 end msg 4166332
May  6 05:00:02 localhost qmail: 1178398802.617305 starting delivery 140809: msg 4163246 to remote jwz69con@kw.com
May  6 05:00:02 localhost qmail: 1178398802.617446 status: local 0/40 remote 40/40
《解決方案》

奇怪的是我看6號晚上的log就算到了半夜remote 還是 40/40
May  6 23:48:06 localhost qmail: 1178466486.427454 info msg 4163545: bytes 2713 from <> qp 23062 uid 507
May  6 23:48:14 localhost qmail: 1178466494.255318 delivery 160768: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
May  6 23:48:14 localhost qmail: 1178466494.255475 status: local 0/40 remote 39/40
May  6 23:48:14 localhost qmail: 1178466494.255511 starting delivery 160801: msg 4162030 to remote zlqcynwyd@3k1.com
May  6 23:48:14 localhost qmail: 1178466494.255539 status: local 0/40 remote 40/40
May  6 23:48:18 localhost qmail: 1178466498.271254 new msg 4163496
May  6 23:48:18 localhost qmail: 1178466498.271407 info msg 4163496: bytes 18433 from <srcriroer@thomas-vt.de> qp 23082 uid 0
May  6 23:48:18 localhost qmail: 1178466498.277455 starting delivery 160802: msg 4163496 to local nihin.com.cn-jpop.163.comhanlucy@nihin.com.cn
May  6 23:48:18 localhost qmail: 1178466498.277591 status: local 1/40 remote 40/40
May  6 23:48:18 localhost qmail: 1178466498.298294 delivery 160802: failure: Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/
May  6 23:48:18 localhost qmail: 1178466498.298451 status: local 0/40 remote 40/40
May  6 23:48:18 localhost qmail: 1178466498.309390 bounce msg 4163496 qp 23090
May  6 23:48:18 localhost qmail: 1178466498.309532 end msg 4163496

到了7號晚上8點后左右又降了下來,然後郵件發送恢復正常
May  7 21:57:53 localhost qmail: 1178546273.128969 new msg 4162870
May  7 21:57:53 localhost qmail: 1178546273.133729 info msg 4162870: bytes 4097 from <> qp 12782 uid 507
May  7 21:57:53 localhost qmail: 1178546273.135988 starting delivery 4364: msg 4162870 to remote immodestlymishapped@veryfast.biz
May  7 21:57:53 localhost qmail: 1178546273.141860 status: local 0/40 remote 20/40
May  7 21:58:01 localhost qmail: 1178546281.177287 delivery 4364: failure: 66.111.4.72_does_not_like_recipient./Remote_host_said:_550_5.1.1_<immodestlymishapped@veryfast.biz>:_Recipient_address_rejected:_User_unknown_in_local_recipient_table/Giving_up_on_66.111.4.72./
May  7 21:58:01 localhost qmail: 1178546281.193342 status: local 0/40 remote 19/40
May  7 21:58:01 localhost qmail: 1178546281.330194 bounce msg 4162870 qp 12786
May  7 21:58:01 localhost qmail: 1178546281.330349 end msg 4162870
May  7 21:58:01 localhost qmail: 1178546281.341902 new msg 4162015
May  7 21:58:01 localhost qmail: 1178546281.342222 info msg 4162015: bytes 4709 from <#@[]> qp 12786 uid 507
May  7 21:58:01 localhost qmail: 1178546281.348002 starting delivery 4365: msg 4162015 to local nihin.com.cn-postmaster@nihin.com.cn
May  7 21:58:01 localhost qmail: 1178546281.348186 status: local 1/40 remote 19/40
May  7 21:58:01 localhost qmail: 1178546281.936182 delivery 4365: failure: user_is_over_quota/
May  7 21:58:01 localhost qmail: 1178546281.937194 status: local 0/40 remote 19/40
May  7 21:58:01 localhost qmail: 1178546281.937455 triple bounce: discarding bounce/4162015
May  7 21:58:01 localhost qmail: 1178546281.937834 end msg 4162015

[ 本帖最後由 nisshinzgz 於 2007-5-7 22:48 編輯 ]
《解決方案》

qmail-qstat

qmail-qread

是什麼結果?
《解決方案》

# qmail-qstat
-bash: qmail-qstat: command not found
# qmail-qread
-bash: qmail-qread: command not found

暈了 這兩個命令居然不管用
奇怪的是到目前位置隊列比較正常

May  8 09:54:11 localhost qmail: 1178589251.701821 new msg 4163891
May  8 09:54:11 localhost qmail: 1178589251.701972 info msg 4163891: bytes 11707 from <> qp 8280 uid 0
May  8 09:54:11 localhost qmail: 1178589251.708931 starting delivery 13080: msg 4163891 to remote hmariana@2friend.com
May  8 09:54:11 localhost qmail: 1178589251.709070 status: local 0/40 remote 15/40
May  8 09:54:11 localhost qmail: 1178589251.709107 delivery 13079: success: 0.0.0.0_accepted_message./Remote_host_said:_250_ok_1178589251_qp_8280/
May  8 09:54:11 localhost qmail: 1178589251.709137 status: local 0/40 remote 14/40
May  8 09:54:11 localhost qmail: 1178589251.709163 end msg 4163887
May  8 09:54:11 localhost qmail: 1178589251.814090 delivery 13080: failure: 0.0.0.0_failed_after_I_sent_the_message./Remote_host_said:_554_too_many_hops,_this_message_is_looping_(#5.4.6)/
May  8 09:54:11 localhost qmail: 1178589251.814246 status: local 0/40 remote 13/40
May  8 09:54:11 localhost qmail: 1178589251.822881 bounce msg 4163891 qp 8284
May  8 09:54:11 localhost qmail: 1178589251.823021 end msg 4163891

[ 本帖最後由 nisshinzgz 於 2007-5-8 10:08 編輯 ]
《解決方案》

你不知道如何運行/var/qmail/bin中的命令?
《解決方案》

那你可以運行如下命令看看
# qmailctl stat
# qmailctl queue
《解決方案》

實在不好意思我的確很菜 剛才又試了一下
# ./qmail-qstat
messages in queue: 2120
messages in queue but not yet preprocessed: 0

qmail-qread裡面信息太多 只能截了一部分
6 May 2007 08:58:17 GMT  #4163395  10455  <>
        remote  GyFpMNcm@pax.kmip.net
6 May 2007 11:19:21 GMT  #4163418  2625  <>
        remote  dilltownh@getmoreincomes.com
6 May 2007 11:52:41 GMT  #4163441  2770  <>
        remote  dnreceptor@merchandisedepot.itcstore.com
6 May 2007 13:10:11 GMT  #4163464  17866  <>
        remote  raynerlucasab@johnpryor.com
6 May 2007 13:45:26 GMT  #4163487  4282  <>
        remote  BasilReese95@aol.com
6 May 2007 14:25:36 GMT  #4163510  2706  <>
        remote  yncensor@net-design-ac.de
6 May 2007 16:33:04 GMT  #4163556  8881  <>
        remote  hhkj@jhjhyt.88ip.cn
6 May 2007 15:51:48 GMT  #4163533  2636  <>
        remote  lnun@ajkanet.hu
7 May 2007 14:33:02 GMT  #4162015  3991  <>
        remote  vsgkejbqzkp@aol.com
6 May 2007 17:44:14 GMT  #4163602  2761  <>
        remote  hfprospectus@daydayupemails.com
7 May 2007 14:53:18 GMT  #4163671  6431  <>
        remote  hidhfi@ff344.dipns.net


另外qmailctl 沒找到

[ 本帖最後由 nisshinzgz 於 2007-5-8 11:15 編輯 ]
《解決方案》

隊列中2000多,你有多少用戶?

應該是不正常的狀態。

你的無主郵件反彈沒有關閉估計。打CHKUSER補丁,等
《解決方案》

我一共才 60來個用戶
我的郵件反彈是沒有關閉
要把.qmail-default 改成這樣嗎 ?
| /home/vpopmail/bin/vdelivermail '' delete
《解決方案》

qmail-remove這個可有用了
你google一下
找來
用它來清空一個郵件隊列
清空這前要先停了qmail才行

[火星人 ] qmail 伺服器隊列被塞滿,發送郵件延遲5小時 求助!已經有783次圍觀

http://coctec.com/docs/service/show-post-39263.html