|
dave spink toolset |
|
SENDMAIL: |
|||
OVERVIEW | LOGS | SENDING MESSAGES | SMTP TEST |
THE PROJECTWe needed reliable mail delivery to support the core applications installed on Unix, the obvious choice for us was Sendmail. OVERVIEWSendmail Local Delivery Sendmail as a Forwarder LOGSUnderstanding Mail Logs Aug 29 20:27:11 d1pr0004 sendmail[26176]: [ID 801593 mail.info] k7TKRB926176: from=<HelpdeskMU@CPShips.com>, size=1938, class=0, nrcpts=1, msgid=<remown@c2pr0001.cpships.com> proto=ESMTP, daemon=MTA, relay=[10.70.80.116] Aug 29 20:27:11 d1pr0004 sendmail[26178]: [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 (<remown@c2pr0001.cpships.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[18374]: [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. [66.116.109.62], dsn=4.0.0, stat=Deferred: Connection refused by bdp.com. Aug 29 14:44:38 d1pr0004 sendmail[18374]: [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: joe.good@gentiva.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. SENDING MESSAGESSend a test message via the sendmail program. # /usr/lib/sendmail -v david.spink@cpships.com Sending mail attachments. # /usr/bin/uuencode file.txt file.txt | mailx -s "Documents" david.spink@cpships.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 ecommvss@cpships.com david.spink@cpships.com Subject: Booking Your booking ZZZ is complete. . Make changes to the aliases file and apply via "newalias" command. # /etc/mail/aliases # newaliases SMTP TESTTo 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: <david.r.spink@us.pwc.com> data Subject: Hello David This is a test message. . quit |