Sendmail停止工作

Posted onCategories技术文章

更新了wpscan,以后用email来接受结果,今天尴尬的发现这服务器怎么不发邮件了。

惊人的发现mail.log 超过1G

root@54zxy:/var/log# du -h mail.log
1.3G mail.log

观察了一会,发现有1w多封email没发出去。

tail -f /var/log/mail.log
Jan 25 06:45:49 54zxy sm-mta[9301]: grew WorkList for /var/spool/mqueue to 14000

不是很理解发生了什么,anyway先删干净再说。

sudo service sendmail stop

列表太长居然还不能删

root@54zxy:/var/spool/mqueue# rm *
sudo: unable to execute /bin/rm: Argument list too long
root@54zxy:/var/spool/mqueue# sudo rm dfw0*
sudo: unable to execute /bin/rm: Argument list too long

折中下,写个for循环一个个删

root@54zxy:/var/spool/mqueue# for i in $(ls); do rm $i; done
sudo service sendmail start

结果还是不行。恩。。。

Jan 25 07:25:24 54zxy sm-mta[4784]: w0P6s6ha003939: to=<boborabit@gmail.com>, ctladdr=<rzhao@blog.54zxy.com> (1000/1000), delay=00:31:18, xdelay=00:10:00, mailer=esmtp, pri=151658, relay=alt4.gmail-smtp-in.l.google.com. [108.177.96.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.

root@54zxy:/var/spool/mqueue# dig mx gmail.com

;; ANSWER SECTION:
gmail.com. 2976 IN MX 20 alt2.gmail-smtp-in.l.google.com.
gmail.com. 2976 IN MX 30 alt3.gmail-smtp-in.l.google.com.
gmail.com. 2976 IN MX 5 gmail-smtp-in.l.google.com.
gmail.com. 2976 IN MX 40 alt4.gmail-smtp-in.l.google.com.
gmail.com. 2976 IN MX 10 alt1.gmail-smtp-in.l.google.com.

root@54zxy:/var/spool/mqueue# telnet alt4.gmail-smtp-in.l.google.com 25
Trying 108.177.96.27…
Trying 2a00:1450:4013:c06::1a…
telnet: Unable to connect to remote host: Network is unreachable

额。初步推断是DO搞了鬼了。Fire了一个ticket等和DO撕逼。

[未完待续…]

3 thoughts on “Sendmail停止工作”

发表评论

电子邮件地址不会被公开。 必填项已用*标注