We are running cron job to send mail sometime it sends the mail, sometime it doesn’t. Not able to figure out seems it is not consistent.
SUCCESS
Jan 23 03:04:23 dc1ld591 sendmail[194610]: 50MI4N1H194610: from=wasroot, size=512535, class=0, nrcpts=1, [email protected], relay=wasroot@localhost Jan 23 03:04:25 dc1ld591 sendmail[194610]: 50MI4N1H194610: [email protected], ctladdr=wasroot (1083/1070), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=542535, relay=mailnp.xxxxx.com [10.11.156.106], dsn=2.0.0, stat=Sent (50MI4Nba2613397 Message accepted for delivery) FAILURE:
Case1
Jan 25 00:29:26 dc1ld591 sendmail[93988]: 50OFTQC2093988: from=wasroot, size=2282, class=0, nrcpts=1, msgid=<[email protected]>, relay=wasroot@localhost Jan 25 00:29:27 dc1ld591 sendmail[93988]: 50OFTQC2093988: [email protected], ctladdr=wasroot (1083/1070), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=32282, relay=mailnp.xxxxx.com [10.11.156.106], dsn=5.6.0, stat=Data format error Case2
Jan 29 02:52:11 dc1ld591 sendmail[1016536]: 50SHqBqi1016536: from=root, size=286, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqi1016536: [email protected], ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30286, relay=mailnp.xxxxx.com [10.11.156.106], dsn=5.6.0, stat=Data format error Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqi1016536: 50SHqBqj1016536: DSN: Data format error Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqj1016536: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31310, relay=dc1mailnp.xxxx.com, dsn=5.6.0, stat=Data format error Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqj1016536: 50SHqBqk1016536: return to sender: Data format error Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqk1016536: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32334, relay=dc1mailnp.xxxxx.com, dsn=5.6.0, stat=Data format error Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqj1016536: Losing ./qf50SHqBqj1016536: savemail panic Jan 29 02:52:12 dc1ld591 sendmail[1016536]: 50SHqBqj1016536: SYSERR(root): savemail: cannot save rejected email anywhere Case3
Jan 25 03:04:33 dc1ld591 sendmail[380374]: 50OI4XeV380374: from=wasroot, size=516591, class=0, nrcpts=1, msgid=<[email protected]>, relay=wasroot@localhost Jan 25 03:04:34 dc1ld591 sendmail[380374]: 50OI4XeV380374: [email protected], ctladdr=wasroot (1083/1070), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=546591, relay=jptdc1mailnp.prudential.com [10.112.xxx.xxx], dsn=5.6.0, stat=Data format error CronJob
0 0 * * * LANG=C sudo /opt/bin/svc_mgr -v logs all all 2>&1 | /usr/bin/tee /opt/ecs/log/wasroot/svcmgr.logs_all.$(hostname).$(/opt/bin/getvalue /opt/cfg/Today SHORT).log | mailx -s "US >Internet Weblogs log deletion" [email protected]
5.6.0 Data format errormessage? One conceivable scenario would be that the destination refuses to accept well-formatted messages merely because they have (semantically) empty (MIME) body (size=2282including all local headers might not be much content at all), does your cronjob do that?