2

Currently i have 3 domains on a vps from digital ocean (running 14.04). Ive installed a lamp stack by following tutorials. Now I looked for an own mail server but most forums said it wasn't easy and is alot of work to maintain and advice to pay for one https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server . how hard is it to install and to maintain compared to a lamp stack. I have basic knolwedge of ubuntu. Is it adviced to just buy one ?

  • This is really a question of opinion - my stance: only set up a public-facing mail-server if you really know what you are doing. – guntbert Jul 14 '15 at 20:35
3

It's easy to host a mail server in Ubuntu... But it's really hard to do it well.
It's almost impossible for a novice to do it as well as a professional company can.

You can boil the arguments down to:

  • Uptime. Professional mail hosts can have multiple MX machines reading your email into a load-balaced cluster database. They'll be up 99.999999999% of the time. If your one server goes down, people sending email to you will see bounces. It won't look very good and you'll lose incoming email.

  • Spam. It takes billions of incoming emails to accurately detect which messages are really spam. That's why players like Gmail are so good at it. Tools like Spam Assassin rely on numbers and accurate training (which Gmail et al generate through crowd-sourcing all their users' input).

  • Security. Mail delivery, processing and access —including webmail— has so many attack vectors. It isn't like a webserver that you can do request analysis and frame limits on. Many processes interact with this foreign, possibly unsafe data and there are so many emerging attacks on every part of that stack. You have to stay on top of it all the time.

  • Blacklists and whitelists. The abundance of spammers has made many spam filtering systems work at least partially on lists of known spammers. If your provider gets a bad reputation for allowing spam, your IP could be caught up in a blacklist of their entire IP range. This will result in your outgoing emails simply being dropped.

    There are many "certified" whitelist programmes around too where companies can pay to be included. These are typically expensive to join but this is what you need if you plan on sending a lot of email.

Hosted email is cheap (it can even be free) and there are some great options out there. If this is worth nothing to you, feel free to host it yourself, but honestly, a smart person lets somebody else deal with the headache.


That is not to say that either basic server or LAMP security are walks in the park. Ubuntu will handle the basic security —as long as you keep up to date with package updates— but you have to manage unpackaged things like Wordpress and Drupal installs, as well as making sane decisions to firewall away non-essential services, and not making any configuration faux pas.

Even things like basic SSH hardening (disclosure: mine) can take a while.

  • Thanks for the afvice! Can you give some options. Currently i have gmail for business works great but pretty expensive . – Sven van den Boogaart Jul 5 '15 at 18:55
  • 1
    I started pushing people towards Zoho after Google made Gmail for domains more expensive. They're fairly good. I still prefer Gmail. I can't weigh up the price points for you though. Handling email well is hard work; I don't know how we've come to expect to get it for free. – Oli Jul 5 '15 at 19:00
  • I dont expect it for free but gmail is around 1000$ a year for 30 adresses. I used a simple webserver before i had a vps for 3$ a month and then i could create unlimited adresses for free. – Sven van den Boogaart Jul 5 '15 at 19:44
  • 30 users might cost that but do you need more than one user? A single account can have many email aliases (on many domains too IIRC, but check that). If you have 30 people, then yes, it's expensive. – Oli Jul 5 '15 at 20:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.