Unable to Send Emails from wordpress site

June 9, 2014 1.6k views
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!
3 Answers
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 @, which could register as a spam email and end up in the spam folder.
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.

Have another answer? Share your knowledge.