Report this

What is the reason for this report?

Unable to Send Emails from wordpress site

Posted on June 9, 2014

Hi, I have LEMP stack on Ubuntu 14.04 with fail2ban configured, which hosts a Wordpress Powered site. I have installed “Contact Form 7” plugin and created a simple form. But that form could not be processed. I then installed postfix on my server and also enabled postfix on fail2ban config file. After this emails can be sent but is unable to receive those emails.

Any Suggestions??

Thanks!



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!

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.

I have checked the Spam folder too. No mails on Spam folder.

check your mail logs /var/log/mail.log see if gmail is blocking it. I added a dkim and spf record and then they stopped blocking and the mail got through. My mail is going to spam…but at least its now being sent through. Don’t know why google picked to block my emails in the first place as I had identical set ups not getting blocked. But this fixed the issue…so check those logs and add that spf dkim.

You might want to check your spam folder to see if the email might be there. If postfix is installed with just the defaults, then the email probably is sent from a <local_system_account>@<hostname_of_the_droplet>, which could register as a spam email and end up in the spam folder.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.