Updated, step by step, email server (pop, imap) for ubuntu

September 16, 2014 4.3k views

All the tutorials are more or less outdated.

As DNS config, email should be easy config, this is the only problem I found in this service.

step by step should include (in this order):
1) DNS registries. Include multidomain
2) do we need to add users to the machine? If so, how to add them and the setup for folder/email permissions
3) required programs needed in order to set POP/IMAP (postfix, SSL...)
4) Test with email clients (settings ports, ssl) as thunderbird, outlook or gmail.
5) optional: webemailserver setup, in php and sendmail php function.

Maybe 1 click install of the LAMP with a kind of CPANEL for that should be perfect, cause is not user friendly at all.


2 Answers


Hosting your own mail server can be a very complicated task. Setting up a simple send-only SMTP server for PHP to be able to send mail is less so, but even then you're likely to run into issues with your mail ending up in spam unless you take care to DKIM sign messages and rate limit your messages.

If you're planning to set up a full blown mail server with IMAP support and web mail, I'd suggest looking at Mail-in-a-Box or iRedMail. Both offer a way to get a mail server with all the bells and whistles up quickly.

Hi, thanks for the fast answer, good customer care services.

No one click install, not easy install, not tutorial but payd easy service.

Thanks, but no Thanks

Have another answer? Share your knowledge.