一Linux伺服器突然發送不出郵件,檢查了很多地方都沒有發現異常,檢查/var/log/maillog發現如下具體信息: Apr 12 00:36:04 mylinux sendmail[4685]: u3BGa4Is004685: Authentication-Warning: mylinux.x... ...
一Linux伺服器突然發送不出郵件,檢查了很多地方都沒有發現異常,檢查/var/log/maillog發現如下具體信息:
Apr 12 00:36:04 mylinux sendmail[4685]: u3BGa4Is004685: Authentication-Warning: mylinux.xxx.xxxx.com: oracle set sender to BackupAdmin using -f
Apr 12 00:40:05 mylinux sendmail[4685]: u3BGa4Is004685: from=BackupAdmin, size=15288, class=0, nrcpts=2, msgid=<[email protected]>, relay=oracle@localhost
Apr 12 00:40:05 mylinux sendmail[4685]: u3BGa4Is004685: [email protected], delay=00:04:01, mailer=esmtp, pri=75288, dsn=4.4.3, stat=queued
Apr 12 00:40:05 mylinux sendmail[4685]: u3BGa4Is004685: [email protected], delay=00:04:01, mailer=esmtp, pri=75288, dsn=4.4.3, stat=queued
Apr 12 01:20:50 mylinux sm-msp-queue[5126]: u36Ga6uI012217: u3BHGn6u005126: sender notify: Cannot send message for 5 days
Apr 12 01:24:50 mylinux sendmail[5166]: u3BHKo2I005166: <[email protected]>... User unknown
Apr 12 01:24:50 mylinux sm-msp-queue[5126]: u3BHGn6u005126: to=BackupAdmin, delay=00:04:00, xdelay=00:04:00, mailer=relay, pri=46877, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Apr 12 01:24:50 mylinux sendmail[5166]: u3BHKo2I005166: from=<>, size=16877, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 12 01:24:50 mylinux sm-msp-queue[5126]: u3BHGn6u005126: u3BHGn6v005126: return to sender: User unknown
Apr 12 01:24:50 mylinux sendmail[5166]: u3BHKo2K005166: from=<>, size=19381, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost.l
ocaldomain [127.0.0.1]
Apr 12 01:24:50 mylinux sm-msp-queue[5126]: u3BHGn6v005126: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=47901, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u3BHKo2K005166
Message accepted for delivery)
Apr 12 01:24:50 mylinux sendmail[5186]: u3BHKo2K005166: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=49614, dsn=2.0.0, stat=Sent
Apr 12 04:02:02 mylinux sendmail[7117]: u3BK22fR007117: from=root, size=1308, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Apr 12 04:06:02 mylinux sendmail[7121]: u3BK22q9007121: from=<[email protected]>, size=1600, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, d
aemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 12 04:06:02 mylinux sendmail[7117]: u3BK22fR007117: to=root, ctladdr=root (0/0), delay=00:04:00, xdelay=00:04:00, mailer=relay, pri=31308, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u3BK
22q9007121 Message accepted for delivery)
Apr 12 04:06:02 mylinux sendmail[7160]: u3BK22q9007121: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31843, dsn
=2.0.0, stat=Sent
Apr 12 05:20:50 mylinux sm-msp-queue[8038]: u3BGa4Is004685: u3BLGn6u008038: sender notify: Warning: could not send message for past 4 hours
Apr 12 05:24:50 mylinux sendmail[8077]: u3BLKoMB008077: <[email protected]>... User unknown
在以前一篇文章中Linux SendMail發送郵件失敗診斷案例(二)介紹過,這個是DNS的配置問題,但是這一次,經過排查和同事提醒,才發現DNS伺服器根本ping不通,後面溝通過後,才瞭解到系統管理員更改了DNS伺服器,以前舊的DNS伺服器已經停用了。所以出現這個奇葩問題。修改了DNS伺服器後,測試發現件處於等待發送的隊列,重啟sendmail服務後,問題解決。