当前位置: 技术问答>linux和unix
关于使用cron发送邮件
来源: 互联网 发布时间:2016-09-07
本文导语: 设置好了crontab的任务信息。 但是无法发送邮件。 maillog的内容如下 Jun 30 15:50:01 website-rde29 sendmail[15092]: o5U7o1dw015092: from=root, size=382, class=0, nrcpts=1, msgid=, relay=root@localhostJun 30 15:50:01 website-rde29 sendmail[15094]: o5...
设置好了crontab的任务信息。
但是无法发送邮件。
maillog的内容如下
但是无法发送邮件。
maillog的内容如下
Jun 30 15:50:01 website-rde29 sendmail[15092]: o5U7o1dw015092: from=root, size=382, class=0, nrcpts=1, msgid=, relay=root@localhostJun 30 15:50:01 website-rde29 sendmail[15094]: o5U7o1Yu015094: from=root, size=384, class=0, nrcpts=1, msgid=, relay=root@localhostJun 30 15:50:01 website-rde29 sendmail[15095]: o5U7o198015095: from=, size=661, class=0, nrcpts=1, msgid=, proto=ESMTP, daemon=MTA, relay=website-rde29 [127.0.0.1]Jun 30 15:50:02 website-rde29 sendmail[15096]: o5U7o1a0015096: from=, size=663, class=0, nrcpts=1, msgid=, proto=ESMTP, daemon=MTA, relay=website-rde29 [127.0.0.1]Jun 30 15:50:02 website-rde29 sendmail[15092]: o5U7o1dw015092: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30382, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o5U7o198015095 Message accepted for delivery)Jun 30 15:50:02 website-rde29 sendmail[15094]: o5U7o1Yu015094: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30384, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o5U7o1a0015096 Message accepted for delivery)Jun 30 15:50:02 website-rde29 sendmail[15097]: o5U7o198015095: to=, ctladdr= (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30883, dsn=2.0.0, stat=SentJun 30 15:50:02 website-rde29 sendmail[15098]: o5U7o1a0015096: to=, ctladdr= (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30885, dsn=2.0.0, stat=Sent
|
我测试了 对方cvicse.com的邮件服务器应该没问题
telnet mx1.cvicse.com. 25
Trying 202.102.159.155...
Connected to mx1.cvicse.com..
Escape character is '^]'.
220 SurfControl RiskFilter - E-mail ESMTP Service Ready
但是你那里为什么会显示no route to host呢!
telnet mx1.cvicse.com. 25
Trying 202.102.159.155...
Connected to mx1.cvicse.com..
Escape character is '^]'.
220 SurfControl RiskFilter - E-mail ESMTP Service Ready
但是你那里为什么会显示no route to host呢!