Creating email addresses

August 10, 2013 21.9k views
Hi, I wanted to know the easiest way and what is needed in order to setup receiving email addresses on my droplets. (And some users need to also be sending from their email) I'm not looking to manage any email servers. But I do want to create email addresses. For instance. etc. I am aware of the security implications of maintain our own mail server so that is why I'm not looking forward to host it locally. I also want it to be easy to create new incoming addresses. I want to easily manage the addresses created on the domain. I need my Apps, like Wordpress for instance (contact form, registrations confirmation, password reset, etc), to be able to send email from the server. Some users need to send out email from their address. I could forward aliases to some external addresses (like @gmail, @hotmail, etc) but then how would those users be able to send from their @domain (I think it's not possible, am I wrong?) If I just want to create aliases, do I need Postfix? If I just want to forward aliases to external emails, do I need Postfix? If I install Postfix on my server to forward aliases to external email addresses, do I risk Spoofing attacks from the addresses ? I know it a lot of questions but I'm trying to figure out the easiest, reliable and secure way to create and manage email addresses for any given domain without having to specifically maintain a mail server. If that is the only solution, please advise so :) Thanks in advance
4 Answers
You can't receive mail on your droplet unless you set up a mail server. I recommend Postfix, we have a couple of articles on installing it:

You can also go for a hosted mail service such as google apps, you can still send mail from your droplet if you use such service.
by Etel Sverdlov
Postfix is a free, open source Mail Transfer Agent which works to route and deliver email. Here we'll help you install and setup Postfix on an Ubuntu 12.04 VPS.
"I could forward aliases to some external addresses (like @gmail, @hotmail, etc) but then how would those users be able to send from their @domain (I think it's not possible, am I wrong?)"

Actually, yes, this is possible. There are plenty of guides available via Google, e.g. How to Send Mail from a Custom Email Address with Gmail; or Set up your Gmail, Yahoo! Plus, or Microsoft email accounts in; and more.
  • I thought about doing this myself, but i don't think it is a proper solution. It's kind of a makeshift solution. The only real solution would be to pay for Google Apps or Microsoft Outlook 365, but those are too expensive. Aren't there any other services that host a mail server for you?

As @kamal said, you will need to install postfix. Follow the instructions in the link he gave you. Then, if you just want postfix to forward emails to another mail server you can follow the instructions at either linuxaria's site or cyberciti's site. linuxaria makes sure to mention setting up the MX records properly.
Have another answer? Share your knowledge.