{"id":1533,"date":"2017-08-20T16:46:34","date_gmt":"2017-08-20T21:46:34","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=1533"},"modified":"2017-08-24T16:47:49","modified_gmt":"2017-08-24T21:47:49","slug":"sendmail","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=1533","title":{"rendered":"Sendmail"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Sendmail is an\u00a0OpenSource\u00a0SMTP\u00a0mail transfer agent implemented on many different\u00a0Unix\u00a0platforms. The original version of sendmail, written in the early 1980\u2019s, was written by Eric\u00a0Allman\u00a0at\u00a0Berkeley.\u00a0\u00a0The release code base of sendmail is version 8.\u00a0\u00a0The packages and source can be found at\u00a0<a href=\"http:\/\/www.sendmail.org\/\">http:\/\/www.sendmail.org<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>Sendmail in its current iteration is configured by many individual files.\u00a0\u00a0All of the configuration options available within the product are well documented at\u00a0<a href=\"http:\/\/www.sendmail.org\/doc\">http:\/\/www.sendmail.org\/doc<\/a>\u00a0and\u00a0<a href=\"http:\/\/www.sendmail.org\/m4\/readme.html\">http:\/\/www.sendmail.org\/m4\/readme.html<\/a>.<\/p>\n<p><strong>Future Releases:<\/strong><\/p>\n<p>There is not a code base 9, but rather\u00a0SendmailX\u00a0which has now become MeTA1 (<a href=\"http:\/\/www.meta1.org\/\">http:\/\/www.meta1.org\/<\/a>).\u00a0\u00a0MeTA1 does not include a local delivery agent or mail submission program \u2013 it is intended as a conduit for email only.\u00a0\u00a0It will use a single configuration file with a radically different syntax.\u00a0\u00a0Currently, the summer of 2007, the code is in a pre-alpha release.\u00a0\u00a0So, it will be a while.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Practical Information:<\/strong><\/p>\n<p>We back the sendmail configuration files up nightly to NEOHTWNLX810 (\/home\/NDSSupport\/Backups\/).\u00a0\u00a0You can restore the files from \/etc\/mail (or \/opt\/pmx4\/sendmail\/etc\/mail as appropriate) to a rebuilt server and return the server\u2019s complete configuration.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mail Queues:<\/strong><\/p>\n<p>Sendmail stores unsent relayed messages in \/var\/spool\/mqueue.\u00a0\u00a0Unsent locally submitted messages will first be in \/var\/spool\/clientmqueue.\u00a0\u00a0Within the\u00a0mqueue\u00a0folder, each message has two separate files, one for the header information and a second for the message data.\u00a0\u00a0To count the number of messages queued for delivery, then, you need to divide the number of files within \/var\/spool\/mqueue\u00a0in half:<\/p>\n<p>echo\u00a0`ls\u00a0-al \/var\/spool\/mqueue\u00a0|\u00a0wc\u00a0-l` \/ 2 |\u00a0bc<\/p>\n<p>&nbsp;<\/p>\n<p><strong>New Email Domain Configuration:<\/strong><\/p>\n<p>We have all of the resources required to establish a new email domain.\u00a0\u00a0(Registration may well be required for a new DNS zone).\u00a0\u00a0To establish a new publicly functional email domain from an existing DNS zone:<\/p>\n<ul>\n<li>Create MX records within the DNS zone.\u00a0\u00a0The 10 weight record should point to neohtwnlx821.windstream.com.\u00a0and\u00a0the 20 weight record should point to neohtwnlx823.windstream.com.\u00a0\u00a0It is important in these MX records to include the period trailing the hostname<\/li>\n<li>On NEOHTWNLX821 and NEOHTWNLX823, edit \/etc\/mail\/access to include the new domain with RELAY<\/li>\n<li>On NEOHTWNLX821 and NEOHTWNLX823, edit \/etc\/mail\/mailertable\u00a0to direct mail to the appropriate destination (unix\u00a0host, Exchange server, etc)\n<ul>\n<li>The destination must be configured to accept email from LX821\/LX823<\/li>\n<\/ul>\n<\/li>\n<li>If internal mail routing needs to be established, an SMTP connector needs to be added to the Exchange organization.\u00a0\u00a0Additionally,\u00a0mailertable\u00a0entries should be created on at minimum LX825, LX830, LX833, and LX828<\/li>\n<li>If mail should be delivered to mailboxes in the Exchange organization, the new domain should be added to the \u201cAdditional Mail Domains\u201d recipient policy.\u00a0\u00a0In this case, the SMTP connector would not be created with Exchange.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Sendmail Troubleshooting:<\/strong><\/p>\n<p>To display information about\u00a0queued\u00a0messages:<\/p>\n<p>sendmail\u00a0\u2013bp<\/p>\n<p>Or to obtain analysis of the domains and addresses within the mail queue, use the\u00a0perl\u00a0scripts located in \/root\/bin:<\/p>\n<p>frombydomain.pl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Ascending count of sender domains<\/p>\n<p>frombyemail.pl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Ascending count of sender email addresses<\/p>\n<p>tobydomain.pl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Ascending count of recipient domains<\/p>\n<p>tobyemail.pl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Ascending count of recipient email addresses<\/p>\n<p>&nbsp;<\/p>\n<p>To retry the queues messages with output to the terminal:<\/p>\n<p>sendmail\u00a0\u2013v \u2013q \u2013C\/etc\/mail\/sendmail.cf\u00a0&amp;<\/p>\n<p>&nbsp;<\/p>\n<p>To retry a specific recipient domain\u2019s queue:<\/p>\n<p>sendmail\u00a0\u2013v \u2013qR<em>thedomain.com<\/em>\u00a0\u2013C\/etc\/mail\/sendmail.cf\u00a0&amp;<\/p>\n<p>Or a specific sender domain\u2019s queue:<\/p>\n<p>sendmail\u00a0\u2013v \u2013qS<em>thedomain.com<\/em>\u00a0\u2013C\/etc\/mail\/sendmail.cf\u00a0&amp;<\/p>\n<p>&nbsp;<\/p>\n<p>To retry a specific message ID:<\/p>\n<p>sendmail\u00a0\u2013v \u2013qI<em>msgidgoeshere<\/em>\u00a0\u2013C\/etc\/mail\/sendmail.cf\u00a0&amp;<\/p>\n<p>&nbsp;<\/p>\n<p>Add \u201c-d8.11\u201d to the queue retry commands to output debug level diagnostic information to the terminal.\u00a0\u00a0E.G.<\/p>\n<p>sendmail\u00a0\u2013v -qIl6UJtCE3021014 \u2013C\/etc\/mail\/sendmail.cf\u00a0\u2013d 8.11<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Sendmail is an\u00a0OpenSource\u00a0SMTP\u00a0mail transfer agent implemented on many different\u00a0Unix\u00a0platforms. The original version of sendmail, written in the early 1980\u2019s, was written by Eric\u00a0Allman\u00a0at\u00a0Berkeley.\u00a0\u00a0The release code base of sendmail is version 8.\u00a0\u00a0The packages and source can be found at\u00a0http:\/\/www.sendmail.org. &nbsp; Sendmail in its current iteration is configured by many individual files.\u00a0\u00a0All of the configuration options &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[259],"class_list":["post-1533","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-sendmail"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1533"}],"version-history":[{"count":3,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1533\/revisions"}],"predecessor-version":[{"id":1536,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1533\/revisions\/1536"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}