Question

How to manage multiple email domains on a droplet

  • Posted September 21, 2014

Hey guys,

I’m in the process of migrating my websites to DigitalOcean and I am kind of confused as to how I would set up multiple emails and forward them to different accounts.

I’m going to have about 3 very low traffic websites on my droplet and they all have different domain names. What exactly would I need to do in order to have name@domain1.com, name@domain2.com, and name@domain3.com to forward to 3 different emails?

Thanks!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You can either learn the ins and outs of postfix, dovecot, etc., or set up something like iRedMail, ISPConfig 3, etc. that will install and manage those things for you with a nice web interface. I’m currently using Virtualmin to manage the domains on my mail server. It is overkill for that job for sure, but that server originally started out as more than just a mail server. If I were to do it again (which is not likely), I would probably go the barebones route and manage all of the components manually.

I am currently in the process of evaluating a couple of third party options for hosting e-mail. They probably have better spam filtering and somebody else can deal with the headaches and ensuring the uptime.

Today I use an email server in a separate droplet in digitalocean. Use this tutorial to create the server: https://www.digitalocean.com/community/tutorials/how-to-install-iredmail-on-centos-x64-6-5. After his execution, create an alias (A) in the DNS configuration of that server pointing to the same IP, for example: (mx IN A xxx.xxx.xxx.xxx) that will: mx.emailserver.com, - (this alias will be used in the fields that will need to email) - and the other fields you want to create e-mails put this address as MX and priority of your choice, in my case use 10. Example: Within the domain domain1.com place the (type) MX (priority) 10 (domain) mx.emailserver.com.br in place the domain2.com domain (type) MX (priority) 10 (domain) mx… emailserver.com.br. too. After that, wait propagate these settings and access the admin iredmail, the possible address: http://emailserver.com/iredadmin. Register your domain accounts and e-mail the same. Then just test. Hugs.