Recommended personal mail server setup [closed]

I've been using GNU/Linux for servers, mostly Debian. I am thinking of keeping my personal email on a centralized server. I have some GMail accounts, and a few from different domains from several web projects which are hosted at the corresponding website hosts.

I am buying a new PC to use as a home server for SVN, Web server, DNS, etc. I was thinking of taking advantage of the new hardware to centralize all my emails on one server.

I've had no experience whatsoever with e-mail servers. All I've done is use IMAP, SMTP, POP3, mostly over the internet, never locally. This question is quite wide, but let me explain what I would like to accomplish.

The main objective is keeping my emails locally: download via POP3 all of my emails from GMail and the different domains into one place. Then, I would also like to use some of these domains directly from my home server with a local SMTP. That is, send mails directly from my server, without having to go through a hosting account. I don't know if I'll use it for every account, but I would also like to have the option to use mail via IMAP.

Since I have no experience at all with mail servers, I know not much about options. The operative system will be Debian GNU/Linux Lenny.


Solution 1:

Mail Server Options

If you can install and configure svn a web server and dns, you should not find it difficult at all to install your own mail server.

Since you're going to go with Gnu Linux/Debian Lenny, I'd suggest using Postfix and Dovecot as your Mail Server Software.

Postfix can handle your mail sending/recieving (smtp, tls etc.) Dovecot can manage your client connections (pop, imap)

Both systems support creation of virtual accounts so you can host email for your family and friends on their choice of domain names (or sub-domains within your domain)

There's plenty of guide/documentation online from the source(s) and interested admins.

There's advocates for other Open Source Mail Servers, exim etc, and it will just come down to picking one and installing it.

Rite of Passage

I have to agree with gyaresu that the question to ask is if the 'cost' / 'benefits' of running your own Mail Server is really worth it?

But, I also believe that joining the realm of the bled and tried sys admins you've really have to bleed some times and just install all these things and operate them.

Installing, configuring, tuning things are part of why you become a good system administrator so it comes as no surprise that you should want to run your own server. And, it is really fun to learn to do these things and have those blinking lights in the bedroom (or whereever the server is going to stay.)

Costs of Running your own mail server?

Although the physical assets and connection times are easy to quantify, we all soon find out that the human/time cost of operating your own servers can be drastic when you have other more interesting things in life to do.

It may not at first become obvious, but if a security vulnerability is discovered for your choice of OS, Mail Server (and all that other stuff on the machine) then time becomes your enemy and the highest cost item.

But as a means of learning more about networking (the smtp/pop3/imap stack) there's nothing better than actually running your own server.

In short, if you're interested in playing with your own mail server, go for it!! You can always take the 'blue' pill another day (or was that the 'red' pill?)

8-)

Solution 2:

Email Server management is the mind killer.

Unless you have a need for privacy/secrecy then running a mail server is a PITA.

Email is such a 99.99% required uptime service these days that losing email for one or more of your important accounts is potentialy catastrophic.

That said, it's always worth having a spare domain name to use while learning new skills. So you could always just forward your gmail account to the server until it breaks.

My recommendation though is to get a free Google Apps account and take advantage of the excellent spam filtering & all around usefulness of IMAP/Calendar/Docs. It syncs with many handheld phones/devices and has a good record of uptime.

If you need privacy in your correspondence then look to the Firefox plugin FireGPG http://getfiregpg.org/ for encryption.

EDIT: Damn I sound like a grumpy whingebags... I've built a range of mail servers and although I'm not answering your question directly I still think you should question 'why' you want to host your own. Maintaining one is frustrating but learning is always worthwhile.