{"id":18,"date":"2008-06-15T00:12:58","date_gmt":"2008-06-14T16:12:58","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=18"},"modified":"2008-06-15T00:15:45","modified_gmt":"2008-06-14T16:15:45","slug":"sendmail-dsn-forwarding-roots-mail","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2008\/06\/15\/sendmail-dsn-forwarding-roots-mail\/","title":{"rendered":"Sendmail DSN &#8211; forwarding root&#8217;s mail"},"content":{"rendered":"<p>Further to my earlier article &#8220;<a title=\"Streamyx SMTP server authentication problem\" href=\"http:\/\/blog.lolyco.com\/sean\/2008\/06\/10\/streamyx-smtp-server-authentication-problem\/\" target=\"_self\">Streamyx SMTP server authentication problem<\/a>&#8220;, the other part of my problem was the DSN &#8211; <strong>Delivery Status Notification<\/strong> emails were not coming to any of my interactive users. I thought at the time they might be going to the sender, since the mails were coming from a <strong>PHP web application<\/strong>. In fact, the notifications were going to <strong>root<\/strong> &#8211; the owner of the sendmail process.<\/p>\n<p>I could see the notifications &#8211; all I needed to do was log in as root (I never do this &#8211; always <strong>su root<\/strong>!) and use the <strong>mail<\/strong> program. There I could see lots of emails that told me exactly why they hadn&#8217;t been delivered:<\/p>\n<blockquote><p><code>reason: 530 5.7.1 Authentication required Refer http:\/\/webmail.tm.net.my\/smtpauth.html<\/code><\/p><\/blockquote>\n<p>At this point, I&#8217;d just like to repeat the point of the previous article. Our <strong>authentication<\/strong> had been <strong>just fine<\/strong> for more than a year. Recently <strong>TM<\/strong> quietly <strong>changed policy<\/strong> and started <strong>rejecting<\/strong> authentication attempts from users who hadn&#8217;t changed their <strong>password<\/strong> since signing up for Streamyx. That URL tells you nothing about the <strong>policy change<\/strong>, you have to work that one out for yourself! OK, maybe it&#8217;s <strong>a bit lame<\/strong>, never changing a default password that&#8217;s the <strong>same<\/strong> for all users, but a clear statement about the wheres and hows would have been only respectable.<\/p>\n<p>Back to root mail forwarding. The Internet is your <strong>friend<\/strong>. There are all manner of complicated ways of doing it, but the one I opted for is <strong>so simple<\/strong>, I don&#8217;t know why I didn&#8217;t always know it. Just write a &#8216;<strong>.forward file<\/strong>&#8216; in root&#8217;s <strong>HOME directory<\/strong>. Mark Roth&#8217;s sendmail tutorial <strong>explains<\/strong> it best, see: <a title=\"Sendmail tutorial: The .forward file\" href=\"http:\/\/www.feep.net\/sendmail\/tutorial\/intro\/forward.html\" target=\"_blank\">The .forward File<\/a><\/p>\n<p>In this example, I opt to <strong>receive<\/strong> root&#8217;s mail, and also forward it <strong>non-recursively<\/strong> (that&#8217;s what the backslash means) to root:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2008\/06\/rootforward.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31 aligncenter\" title=\"rootforward\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2008\/06\/rootforward.jpeg\" alt=\"Forwarding root\\'s mail\" width=\"460\" height=\"111\" \/><\/a><\/p>\n<p>This seems to work a treat. I&#8217;m hoping this means I won&#8217;t be thrashing around completely in the dark the next time TM change the email rules!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Further to my earlier article &#8220;Streamyx SMTP server authentication problem&#8220;, the other part of my problem was the DSN &#8211; Delivery Status Notification emails were not coming to any of my interactive users. I thought at the time they might be going to the sender, since the mails were coming from a PHP web application. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[29,18],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-fixed","tag-email","tag-server"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":0,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}