Question

Unable to Send Emails from wordpress site

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!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

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

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.