Question

How to set up email to work properly in VestaCP?

  • Posted February 11, 2015

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.

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.

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.

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…

I Need Help. I Have Disabled My MX Record In CloudFlare. But my Email Verification Process Not Working. When I Register New Username With Email Confirmation Link Not Come My InBox… my Site

Thanks @ocsnetworks !

Our SMTP port was blocked by DO

They un-blocked it and it is working now

I have update the confg change as per your input

Have a Nice Day!

We are facing same issue @ocsnetworks

We have followed all the steps 1 & 2 of your email and they are reflected https://mxtoolbox.com/SuperTool.aspx?action=mx%3Aportexcel.com&run=toolpage#

Connecting to 139.59.39.81

220 mail.portexcel.com ESMTP Exim 4.89 Sun, 02 Jul 2017 14:39:52 +0530 [6161 ms] EHLO PWS3.mxtoolbox.com 250-mail.portexcel.com Hello pws3.mxtoolbox.com [64.20.227.134] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-CHUNKING 250-STARTTLS 250 HELP [851 ms] MAIL FROM:supertool@mxtoolbox.com 250 OK [851 ms] RCPT TO:test@example.com 550 relay not permitted [1790 ms]

PWS3v2 10770ms

Issue is still there

  1. We cannot send email to any domain like google, hotmail, yahoo etc
  2. We can receive email perfectly fine

I configured exim to relay outgoing mails to an external provider (like sendgrid.com -free 10k mails-). I think this is the secure and better solution. There are lot of threads on how to do this.

Same here. The Roundcube just don’t send with VestaCP

Seriously it is the biggest problem with the control panel tried everything and have checked that the server’s ip is not blacklisted installed ubuntu without firewall etc. etc. i was however able to send trough gmail smtp from wordpress but the webmail installed together with vestacp was still not working. And i was not able to make it work tried several setups