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=<email@example.com> 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 (<firstname.lastname@example.org> 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. [184.108.40.206], 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: email@example.com 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 firstname.lastname@example.org
Sending mail attachments.
# /usr/bin/uuencode file.txt file.txt | mailx -s "Documents" email@example.com
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 firstname.lastname@example.org email@example.com 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: <firstname.lastname@example.org> data Subject: Hello David This is a test message. . quit