Question

How to set up email to work properly in VestaCP?

I have VestaCP installed on Ubuntu 14.04 x64 and have created multiple email adresses in VestaCP. I was trying to use roundcube mail client for the emails, but I face a problem when sending emails out.

Most of the servers would reject the emails and provide different error messages. Following is a mesagge from gmail:

I have not yet sent a single email succesfully, so previous spam is not a problem.

P.S. Receiving emails works as a charm.


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.

To Fix this issue:

  1. Make sure your droplet name matches your server name. a. Power Off droplet. b. Click on Server Name, change this to aka: server1.yourdomain.com c. Go to Networking in Digital Ocean CP. Click on PTR Records. d. Add PTR record for aka: server1.yourdomain.com e. Power On droplet.

  2. Update Settings in VestCP to match. a. In VestaCP, click on Server Tab. (Make sure it has a FQ domain) aka: server1.yourdomain.com b. Under DNS, add an A record for that subdomain.

For all the settings and update to take place, it will take a while for other servers on the net to respond. But once this is done, you will be able to send/receive to pretty much any domain.

Vestacp is a trainwreck… no doubt …

If I could find a way to make vestacp work with mailinabox that would be great…