Issues sending email form VestaCP on Digital Ocean VPS

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?


@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.

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 - 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.

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?

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?

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.


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.

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