{"id":45,"date":"2009-03-24T17:58:06","date_gmt":"2009-03-24T05:58:06","guid":{"rendered":"http:\/\/www.mdickinson.dnsalias.org\/php\/wordpress\/?p=45"},"modified":"2009-03-24T17:58:06","modified_gmt":"2009-03-24T05:58:06","slug":"sendmail-configured-to-forward-mail-to-one-server","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=45","title":{"rendered":"Sendmail configured to forward mail to one server"},"content":{"rendered":"<p>Well in an earlier post I mentioned on my todo list was to setup all my Linux servers to forward emails from all servers onto one &#8216;collection&#8217; server so I just had to read the emails in one place instead of logon to each server.<\/p>\n<p>As expected it wasn&#8217;t that straight forward, but the majority of the goals outlines in that post have now been achieved. I have managed to<\/p>\n<ul>\n<li>change all the mailboxes sendmail selivers mail to from MBox format to Maildir format, simply by creating a default postfix configuration file<\/li>\n<li>configured sendmail to allow mail to be sent from any server to that one &#8216;collection&#8217; server, and even to get it to bounce it back on errors, minor fiddling in sendmail.cf and a lot of fiddling in the \/etc\/hosts files<\/li>\n<li>all email automatically forwarded to that one server, through simply changing the mail aliases file so all emails get forwarded<\/li>\n<li>installed Dovecot so I can retrieve the emails using POP3 and read\/store those emails using Thunderbird on my desktop machine instead of needing to login to the server<\/li>\n<li>and setup a deafult .muttrc file so when I do actually login to the server at the command line I can read the Maildir format emails with mutt<\/li>\n<\/ul>\n<p>\nWhile the changes to set all that up were fairly trivial, it did take me quite a while to figure out how to do that, so I have added a reference on how I implemented it in the site <a href=\"https:\/\/mdickinson.dyndns.org\/public\/doc\/books\/index.php\">Tutorial section<\/a> in case it&#8217;s of use to anyone else. The tutorial is <b>Fedora<\/b> specific in that my environment was a mixture of FC8 and FC10 servers, in other distributions the configuration files may be in different places and the method of installing software may be different.\n<\/p>\n<p>\nThe only thing on my todo list I haven&#8217;t yet done is setup getmail to pull emails from all my ISP managed POP3 accounts down to that &#8216;collection&#8217; server automatically. I&#8217;m having second thoughts about that as I don&#8217;t allow email to be sent from my internal network (from the Linux servers anyway) to the internet so won&#8217;t be able to &#8216;reply to&#8217; emails if I pull them down that way (and yes I do want to delete them from the ISP server if I pull them down). So pherhaps I&#8217;ll just set it up for eveything except my main ISP email account (yes if I pull it down to Thunderbird it can send through the ISP account, but the mail headers will have changed as I&#8217;m retrieving it from a different userid\/email on the &#8216;collection&#8217; server now, so most spam filters will throw the reply away as coming from a different address). When I&#8217;ve decided, or done it, I&#8217;ll update the tutorial to include it.\n<\/p>\n<p>\nAnd I&#8217;ll add something else to the todo list. SquirrelMail looks interesting, a web browser front end to an IMAP mail server&#8230; I might have a play with that as well, or might not simply because as I&#8217;ll never allow sendmail on the internal network to send emails to the external network (spam relay, not me) it&#8217;s of limited use to me, but it looks interesting. Obviously thats why I chose Dovecot as the IMAP\/POP3 server, thinking ahead to that as SquirrlelMail chats to that quite happily. I didn&#8217;t really need an IMAP server as I&#8217;m normally on the command line so use mutt. But SquirrelMail looks interesting and of course I won&#8217;t know that I don&#8217;t need it until I have it (just like shopping at sales, get it now and worry about what to use it for later).<\/p>\n<p>But thats for later on as well. I&#8217;ve thought of a tweak I want to make to one of my MVS3.8J programs so that top of my &#8220;I&#8217;ve been sidetracked again&#8221; list at the moment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well in an earlier post I mentioned on my todo list was to setup all my Linux servers to forward emails from all servers onto one &#8216;collection&#8217; server so I just had to read the emails in one place instead &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=45\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}