Post details: Linux Mail Servers

04/23/05

Permalink 12:15:04 am, Categories: Linux, 318 words   English (US)

Linux Mail Servers

I do some consulting every now and then, and a recent project requires that I setup a Linux mail server for about 50 users.

Now this sounds like a very simple project, but I have been using CommuniGate Pro for so long that I've become unfamiliar with the current state of the art in free mail servers. I had some good experience with Postfix in the past, and I damn sure don't want to use Sendmail. I spent a few hours searching and found dozens of Postfix + SASL + Cyrus + IMAP + BLAH + MORE + WORK + THAN + NECESSARY guides. They are great and all, but honestly why does setting up an email server need to be so complicated?

Is there no free CommuniGate Pro equivalent out there? The closest thing I found was Courier, but it seems no one is using this as a complete server, and just using parts like IMAP. Maybe I'm wrong to look for an all-in-one solution. After some more research, the best combination of tools in my opinion for this project would be:

  • Postfix (SMTP)
  • Dovecot (IMAP/POP3)
  • Mailscanner (SpamAssassin and ClamAV)
  • Optional MySQL user database

Everything else just seems messy to me. For my project it doesn't really make sense to have a 'virtual' domain setup, and instead I can just use local user accounts. The drawback is, since they are hashed passwords, client login is required to be plaintext. That shouldn't be a problem when using SSL, but still bothers me. One option is to store the passwords plaintext in a MySQL database, and configure the SASL stuff to authenticate via that.

A goal is to let this customer manage users via a web interface, but I've found no such tool. I was thinking if I just use system accounts, Webmin for account maintenance should be easy enough. Or maybe just some simple python scripts.

Anyhow, I setup a wiki page with some more info.

Comments, Pingbacks:

Comment from: pete [Visitor]
CommuniGate is easy because 1. people are paid to make it that way, 2. all configuration is done inside a web browser which practically no other MTA uses, and 3. it's proprietary and the more components you have the easier it is to debug them and reverse engineer.

If you want a simple all-in-one solution, good luck, because I don't know that an open source one exists. There's things like OpenExchange or whatever but they require 20 times more dependencies and set-up than the common Postfix+Courier-IMAP setup.

Also, much of this preparation hinges on technology which can be applied to many circumstances (such as PAM, SASL, LDAP, etc) so learning them is a good way to extend your knowledge about other systems in the *NIX world.

And finally i'll mention that which i'm sure you don't want to hear: having separate components is GOOD :) It's the UNIXy way to do things; make it modular yet simple so you can use it with something else in the future.

P.S. If you wanted you could make your own all-in-one solution out of Perl modules; there's enough pre-packaged use-this-module-and-set-these-options-and-you-have-a-server
tools for perl that you could build a whole mail suite in about 1000 lines. But then again, you don't like Perl, so maybe Python has a pop3 module or something... ;)
Permalink 05/12/05 @ 17:49
Comment from: Ravi [Visitor] · http://linuxadminsupport.com
Best one is qmail, iam running past couple of years with out any glitch... you can have smtp+pop+imap+maillist+webmail+gui to manage users and mailing list.

you can setup very easily with one script ... seee http://www.qmailrocks.org/

ONly once script which is 25-30 MB...it consists all above functionaltiies and software and it is FREE fREE... you can mail me if you need any help
Permalink 07/27/06 @ 08:57

Leave a comment:


Warning: touch() [function.touch]: Unable to create file /hsphere/local/home/valankar/viraj.org/_tmp/hn_captcha_counter.txt because No such file or directory in /hsphere/local/home/valankar/viraj.org/b2evolution/blogs/skins/hn_captcha.class.x1.php on line 209

Warning: touch() [function.touch]: Unable to create file /hsphere/local/home/valankar/viraj.org/_tmp/hn_captcha_counter.txt because No such file or directory in /hsphere/local/home/valankar/viraj.org/b2evolution/blogs/skins/hn_captcha.class.x1.php on line 209


An ERROR has occured!
Here you might send email-notification to webmaster or something like that.

Unable to safe captcha-image.