Issues sending email form VestaCP on Digital Ocean VPS

Posted January 27, 2016 14k views

I currently have a personal web design & hosting business going on and I’m using digital ocean as the vps with VestaCP as my control panel. By Default VestaCp comes with Roundcube as the email client. I had deployed the server with no issue at all and my droplet and configuration is able to serve websites with no issue. The only problem I’m having is that when I try to use roundcube to send emails it continues to fail. I am able to receive emails but when I attempt to send a email i get back an email that states “The message can not be delivered” and that “its being blocked by the email server” of yahoo, gmail, & etc. Can anyone help me with this issue?

  • If you know your domain is not being blacklisted, then you may want to check that your SPF is configured correctly, or whatever domain email signing scheme you use. Also, does /var/log/mail.log show a difference between email being sent by roundcube versus any other email client?

    by Keshav Pareek
    Here we'll show you how to create a SPF record for your domain with Google Apps.
  • Hey thanks for replying back,

    I followed the link you provided and followed the steps. It did not return an error however it did not go through as i tested it with my personal email. I used the google mx records that the tutorial suggested. The error logs show that the emails are trying to send from my domain ip. Nethier does roundcube or my other email client allow me to send email from it, only receive it. I would want to be able to send email from my domain as well as receive it. Any other thoughts?

  • @Artmanstan - So using SPF removed the message “...its being blocked by the email server”, but the emails are still not being delivered?

    What was the last reported status in /var/log/mail.log when you sent from your domain to another domain? (Look for the string “status=” in the mail log). Need to narrow down the point where the email hand-off occurred and what happened.

  • Yea it stopped the error message but doesn’t deliver the message. I think it’s cause using the Google mx credentials. How could I find or generate my own mx credentials so I can send emails from my own domain’s?

  • @Artmanstan - Use a free (for basic diagnostics) site like For the mxtoolbox site, use the button with the pulldown menu to do the test you like (like examining your MX records, blacklisting checks, testing your email server and your reverse DNS configuration, etc). Good luck.

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.

Submit an Answer
1 answer


If you are currently going to use your droplet for running a mail server for sending and receiving mail, you will need to configure your MTA to listen publically on port 25 and your MX records will point to your droplet’s hostname.

If you would like to only use your droplet for sending mail, you may want to check out the following tutorial:

Please let us know if there is anything else we can help you with.

DigitalOcean Support
Check out our community for great tutorials, articles and FAQs!

by finid
Postfix is an MTA (Mail Transfer Agent), an application used to send and receive email. In this tutorial, we will install and configure Postfix so that it can be used to send emails by local applications only.