dave spink toolset
|OVERVIEW||LOGS||SENDING MESSAGES||SMTP TEST|
We needed reliable mail delivery to support the core applications installed on Unix, the obvious choice for us was Sendmail.
Sendmail Local Delivery
Sendmail as a Forwarder
Understanding Mail Logs
Aug 29 20:27:11 d1pr0004 sendmail: [ID 801593 mail.info] k7TKRB926176: from=<HelpdeskMU@CPShips.com>, size=1938, class=0, nrcpts=1, msgid=<firstname.lastname@example.org> proto=ESMTP, daemon=MTA, relay=[10.70.80.116] Aug 29 20:27:11 d1pr0004 sendmail: [ID 801593 mail.info] k7TKRB926176: to=<Monique.Sullivan@cpships.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=121938, relay=tpaexfe.ad.cpships.corp. [10.152.38.168], dsn=2.0.0, stat=Sent (<email@example.com> Queued mail for delivery)
The following extract show the mail server "bdp" refuses connection from our sendmail server.
Aug 29 14:44:38 d1pr0004 sendmail: [ID 801593 mail.info] k7OEWm909422: to=<CPETERS@BDP.COM>, delay=5+00:11:49, xdelay=00:00:01, mailer=esmtp, pri=43410934, relay=bdp.com. [18.104.22.168], dsn=4.0.0, stat=Deferred: Connection refused by bdp.com. Aug 29 14:44:38 d1pr0004 sendmail: [ID 801593 mail.info] k7OEWm909422: k7TEf0A18374: sender notify: Cannot send message for 5 days
The following message sent from Exchange and returned non deliverable first appears to be a problem with the server "tpaexgw01". In fact the problem is with the mail server at "gentiva.com" which replied with the error message. The server "tpaexgw01" received the error message.
Our message did not reach some or all of the intended recipients. The following recipient(s) could not be reached: firstname.lastname@example.org on 8/31/2006 10:41 AM <tpaexgw01.cpships.com> #2.1.0 smtp; 452 4.3.1 Unable to accept message because the server is out of disk space.
Send a test message via the sendmail program.
# /usr/lib/sendmail -v email@example.com
Sending mail attachments.
# /usr/bin/uuencode file.txt file.txt | mailx -s "Documents" firstname.lastname@example.org
Making sense of mail queues.
# cd /var/spool/mqueue # ls *BGCdrP21777 dfg.....< is body of messages qgf.....< is header of messages xfg.....< is attachment
Changing the name of the sender.
#/usr/lib/sendmail -F email@example.com firstname.lastname@example.org Subject: Booking Your booking ZZZ is complete. .
Make changes to the aliases file and apply via "newalias" command.
# /etc/mail/aliases # newaliases
To determine the version of sendmail.
# /usr/lib/sendmail -d0 -bt < /dev/null | grep -i Version
Sending a test message by establishing a SMTP connection on port 25.
telnet uxsmpr02.nam.pwcinternal.com 25 helo ustpa3ifsec01.nam.pwcinternal.com mail from: <EMC_Control_Center@us.pwc.com> rcpt to: <email@example.com> data Subject: Hello David This is a test message. . quit