How do I set up email on my droplet Ubuntu Ghost 0.5.4 on 14.04?

  • Posted on November 21, 2014
  • dbulliAsked by dbulli

I would like to install email server, and just have it forward to a email. I know how to set up Google App but that is no longer free, so just want the forwarding aspect.


Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This didn’t work for me.

A couple notes.

  1. Ghost is able to send me test e-mails through
  2. I’m using the ghost droplet.
  3. In the postfix file I updated the myhostname =, it was previously myhostname = ghost. I also removed the line alias_maps = hash:/etc/aliases and added the line virtual_alias_maps = hash:/etc/postfix/virtual.
  4. I created the file virtual under /etc/postfix and added name@mydomain to the file.
  5. I ran the sudo newaliases and sudo service postfix restart command. I also tried running sudo postmap /etc/postfix/virtual and running sudo service postfix reload as well.

I’m not sure whats wrong here. Can anyone give me an idea what I’m doing wrong?


To set up email forwarding, you will need to install a mail transfer agent (MTA) first such as Postfix. Check out How To Install and Setup Postfix on Ubuntu 14.04 | DigitalOcean.

Once you’ve done that, add an alias so that all emails are forwarded to your gmail email address:

Open /etc/postfix/virtual in your favorite editor:

sudo nano /etc/postfix/virtual

Add the following line at the bottom:

# Forward everything under

# Forward specific email addresses

Then, apply the changes:

sudo newaliases
sudo service postfix restart