{"id":119,"date":"2006-01-29T09:43:17","date_gmt":"2006-01-29T08:43:17","guid":{"rendered":"http:\/\/www.paullynch.org\/blog\/?p=119"},"modified":"2006-01-29T09:43:17","modified_gmt":"2006-01-29T08:43:17","slug":"migrating-mail","status":"publish","type":"post","link":"https:\/\/www.paullynch.org\/blog\/?p=119","title":{"rendered":"Migrating Mail"},"content":{"rendered":"<p>My current server runs FreeBSD, sendmail, and cyrus IMAP.  I experimented with an old (more than 5 years) webmail package, but that hasn&#8217;t been in use for some time.  It has a procmail mailer of my own devising to handle some primitive spam filtering, but that really doesn&#8217;t cut it any more.<!-- more --><\/p>\n<p>Moving to MacOS X Server means a change to postfix, working webmail (SquirrelMail), filtering (spamassassin, clamAV, and Sieve), and using MailMan for all lists.  The change from procmail to Sieve doesn&#8217;t bother me, and the webmail won&#8217;t make a significant difference.  We had MailMan installed, but dropped the couple of lists we had that used it several years ago.<\/p>\n<p>A couple of things are giving me a headache: the first is users.  I have set up my user accounts and given them my own randomly generated passwords, which I can tell the users.  However, I really want them to be able to change their passwords themselves, and I don&#8217;t see a way of doing that beyond giving them shell access, which isn&#8217;t going to be appropriate for all users.<\/p>\n<p>The second is aliases.  We use a lot of aliases: paul is mapped from Paul_Lynch, paul.lynch, and a few others; we also use aliases for common list type addresses: info, sales, etc.  I can see using MailMan for the lists, but it isn&#8217;t appropriate for single member lists.  In sendmail, I just edit the aliases file and re-make \/etc\/mail: end of story.  But I don&#8217;t see a UI tool to do the same for MacOS X Server.  Apparently you add additional short names in Workgroup Manager to handle this; the first short name is &#8216;special&#8217;.  This doesn&#8217;t help for account redirections, including redirecting from an alias to a list.<\/p>\n<p>The normal solution for postfix is to edit the \/etc\/aliases file and run newaliases, which is very similar to the old sendmail solution.  So MacOS X Server supports single address aliases through the UI (what may be called &#8216;real&#8217; aliases), but traditional aliases still have to be created the old fashioned way &#8211; call them &#8216;group&#8217; aliases.<\/p>\n<p>In addition, postfix supports most existing sendmail configuration files; we also use virtusertable for off-site (ie non-user) aliases and groups.  The aliases file is restricted to local users only.<\/p>\n<p>As we have a number of domains, I will need to investigate the &#8216;advanced&#8217; features for virtual hosting, could be interesting.<\/p>\n<p>Notes:<\/p>\n<p>If you have an alias similar to &#8220;Paul_Lynch&#8221;, it must be entered into the short names as &#8220;paul_lynch&#8221;.  This is different from the old netinfo form of mail aliases, and definitely caught me out.<\/p>\n<p>For spam filtering, you need to prime the pumps by creating two mailboxes, one for spam and one for definite non-spam, and running a command line on them.  Once that is done, you should create users called junkmail and notjunkmail; use forward (Cmd-Shift-E) to send new spam to these account, which are processed by cron every night.  After about three weeks of this, I still have a lot of spam coming in, but it does seem to improve gradually.<\/p>\n<p>More detail on aliases<\/p>\n<p>\/etc\/aliases is linked to \/etc\/postfix aliases. When you make a change, you must run newaliases, and then &#8216;postfix reload&#8217;.<\/p>\n<p>Postscript:<\/p>\n<p>I have been running, reasonably painlessly, on this server since January 1, 2006.  The transition went more smoothly than I expected; the only surprise was the one mentioned above about alias case sensitivity.<\/p>\n<p>Somewhere I kept some more notes about exact configuration steps, which I will post when they surface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My current server runs FreeBSD, sendmail, and cyrus IMAP. I experimented with an old (more than 5 years) webmail package, but that hasn&#8217;t been in use for some time. It has a procmail mailer of my own devising to handle some primitive spam filtering, but that really doesn&#8217;t cut it any more. Moving to MacOS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[25,26,37],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-server-side","tag-mac-mini","tag-mail","tag-unix-admin"],"_links":{"self":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":0,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}