{"id":2392,"date":"2004-08-28T17:25:04","date_gmt":"2004-08-28T21:25:04","guid":{"rendered":"http:\/\/control-h.org\/?p=2392"},"modified":"2004-08-28T17:25:04","modified_gmt":"2004-08-28T21:25:04","slug":"new-mail-server","status":"publish","type":"post","link":"https:\/\/control-h.org\/index.php\/2004\/08\/28\/new-mail-server\/","title":{"rendered":"New Mail Server"},"content":{"rendered":"<p>So, for the past few months, I&#8217;ve been prepping a new mail server for the station.  The one that we had been using was really becoming taxed.  It was a retired salesperson&#8217;s machine, running Debian Woody.  When it had fifty pop accounts with no filtering it was fine.  Double the number of accounts, add in spamassassin, and make about 30% of those users imap users, and you&#8217;ve got a machine that is smokin&#8217;.<br \/>\nLast year, we built this dual xeon machine to act as a server for some new billing software.  We were kind of a testbed for this software, and, well, it sucked.  So, they went back to the old stuff, and I had this free big baller machine.  For a time, it served as a streaming audio host.  Then it served as a fileserver for a time.<br \/>\nI decided to make it into the new mail server.  At <a href=\"http:\/\/www.757tech.net\">757 Tech<\/a>, I&#8217;d set up a virtual hosting mail server using qmail, vpopmail, etc.  It works pretty well, and it&#8217;s got some nice features as far as web administration.  Best of all, you don&#8217;t need an account on the machine for each address.  Stlll, it was a pain in the ass to set up, and it&#8217;s difficult to maintain.  I&#8217;d also done the conversion of users.757.org from sendmail to postfix.<br \/>\nI had pretty much decided that I wanted to use either qmail or postfix for the new machine, as they&#8217;re more secure than a gigantic setuid binary.  Qmail, of course, has the djb-induced weirdness that comes along with qmail, but it doesn&#8217;t bother me that much.  It is, however, a bitch to setup, especially if you want it to do more than just deliver mail.<br \/>\nI fiddled around with qmail and some of the virus\/spam tools that ride atop it&#8230;.qscanq, qmailscanner, etc.  Never could get it working the way I&#8217;d like, and they eat an extraordinary amount of resources.  Postfix was a bit easier to setup.  Again, just setting it up to do unix mail is easy.  Combining it with SpamAssassin, and ClamAV, well, that&#8217;s a different story.  It seems that most people use either MailScanner or Amavis.  I tried both, and was thoroughly unimpressed.<br \/>\nIn the meantime, I&#8217;d setup exim4 on freebsd for my home machine.  Bascially all the MTA on that machine does is deliver mail locally, and forward outbound mail to Cox&#8217;s smtp server.  But I was impressed with how simple it was to set up from ports, and so I started looking more closely at it.  Lo and behold, there&#8217;s this exiscan patch that does virus and spam scanning from within Exim without a nasty perl script.  Better yet, it doesn&#8217;t use the helper programs (clamdscan and spamc), rather, it interfaces with the daemons directly.<br \/>\nSo, I settled on doing that.  It rocks!  Had some trouble doing the conversion, mainly with accounts that had been set up on the old machine between the time I duplicated the accounts, and the time I did the switchover.  I wrote a script to call mb2md for each user to convert the old mail spools to maildir.<br \/>\nOnly glitch I ran into really was a problem unrelated to the MTA.  For some reason, the box gets caught in the D state with quotas enabled on the home directory.  I disabled the quotas, and everything is working fine.  I&#8217;ve got like 140GB for the users homes, so I don&#8217;t anticipate a problem anytime soon.  The tarball moving the mail from the old machine was 2GB.<br \/>\nStill ironing out the minor glitches, but it seems to be sending and receivng mail as it should, blocking worms, etc. etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, for the past few months, I&#8217;ve been prepping a new mail server for the station. The one that we had been using was really becoming taxed. It was a retired salesperson&#8217;s machine, running Debian Woody. When it had fifty pop accounts with no filtering it was fine. Double the number of accounts, add in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2392","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/posts\/2392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/comments?post=2392"}],"version-history":[{"count":0,"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/posts\/2392\/revisions"}],"wp:attachment":[{"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/media?parent=2392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/categories?post=2392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/control-h.org\/index.php\/wp-json\/wp\/v2\/tags?post=2392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}