How to set up email to work properly in VestaCP?

February 11, 2015 9.7k views

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:

  • SMTP error from remote mail server after end of data: host []: 550-5.7.1 [ 12] Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 for 550 5.7.1 more information. gp3si2559708wib.60 - gsmtp *

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

P.S. Receiving emails works as a charm.

5 Answers

Your ip may be on a blacklist with the major isps.

I checked the common blacklist and it does show clean.

One thing I did notice you have no PTR record. You need to rename your droplet so it matches up with you mail settings.

Also make sure you are setting up SPF and DKIM keys this will help mail from being dumped in the spam folders.

If it is indeed a bad ip about the only solution is snapshot the droplet. Then create new droplet from snapshot then kill off the original droplet.

  • Thanks for your response, but I did not understand the the part about having no PTR recored.
    You suggested renaming droplet so it would match with my mail settings.

    Could you please give some more info about it?

  • A PTR record is just a reverse DNS lookup. See

    When you created your droplet if you gave it a FQDN DigitalOcean would have setup the record for you. You will see it in DO control panel under DNS.

    If you didn't you will need to rename the droplet to match the server. Like Me personally I don't like to give out what a servers function is so I give them generic names like

    This may not be your problem but I can tell you with my personal mail server it will bounce mail for missing and invalid dns.

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

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

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

Have another answer? Share your knowledge.