WordPress email notifications

May 18, 2013 19.4k views
Hello I've followed the instructions in the set up wordpress tutorials and all is working well. I have noticed however that I'm not getting any emails at all from wordpress. Can anyone help? I've read around and noticed postfix getting mentioned so I've followed that guide here too but it doesn't seem to be working.
19 Answers
Thanks Dave, II've followed that, hope I've set it up right?.
I think this step could do with being added to the wordpress tutorial is its an essential part of a wordpress install.
You must configure exim4 to internet site before it can make internet delivery, to configure it, I suggest this guide: http://bit.ly/10dBs8a
Let me know if it works correctly.
Awesome! Just followed those steps and we're very much in business. Thank you very much! I'm sure this should be mentioned in the WordPress tutorial. Coming from a background of always having a web host set this up I didn't even think about this until I realised there were no messages coming through.
"I'm sure this should be mentioned in the WordPress tutorial."
-Adam Heward

I 2nd that!
Use exim4 for sending mail.

apt-get --purge autoremove postfix
apt-get install exim4
dpkg-reconfigure exim4-config

And then configure everything according to your needs.
Glad you're sorted out.
-Dave
Dave. I have another issue now in that Buddypress activation emails are not getting sent out. WordPress emails work fine but for some reason BP activations are not working.
It may be a problem with Buddypress, or your setup, because mails from Wordpress are being sent, so not a problem with the Mail Transfer Agent.
How do I change root and postmaster mail recipient again?

I tried 'dpkg-reconfigure exim4-config'
Have not been able to get to that last bit after the 'non-spilt' screen.
@Nicholas: Try searching /etc/exim4 for any occurrences of your current postmaster domain:

grep -ri 'domain' /etc/exim4
@Kamal: Thanks, will try that.
I'm getting socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned. Think I must take localhost out of the mix somewhere...
@Ian.waring: Try rebooting your droplet.
I must be doing something wrong...

There is no problem with my WordPress install sending emails out as long as the email address it's sending out to is not the same domain as my WordPress site. Can't seem to get them to send to the same domain.

I've gone through with the dpkg-reconfigure of exim4, but I never get that last window where you can set the postmaster email. Am I doing something wrong?
After configuring I cannot send email.
Here lis the log:
2014-02-15 13:00:01 1WEeqf-0000ly-4f <= smmsp@esdtec.net U=smmsp P=local S=706
2014-02-15 13:00:01 1WEeqf-0000ly-4f gmail-smtp-in.l.google.com [2607:f8b0:400d:c04::1a] Network is unreachable
2014-02-15 13:00:05 exim 4.80 daemon started: pid=3257, -q30m, listening for SMTP on [127.0.0.1]:25
2014-02-15 13:00:05 Start queue run: pid=3260
2014-02-15 13:00:05 1WEeTw-0000Sp-DG gmail-smtp-in.l.google.com [2607:f8b0:400d:c04::1a] Network is unreachable
2014-02-15 13:01:04 1WEeqf-0000ly-4f gmail-smtp-in.l.google.com [74.125.29.26] Connection timed out
2014-02-15 13:01:08 1WEeTw-0000Sp-DG gmail-smtp-in.l.google.com [74.125.29.26] Connection timed out
2014-02-15 13:01:08 1WEeTw-0000Sp-DG alt1.gmail-smtp-in.l.google.com [2a00:1450:400c:c03::1b] Network is unreachable
2014-02-15 13:02:07 1WEeqf-0000ly-4f alt1.gmail-smtp-in.l.google.com [173.194.66.27] Connection timed out
2014-02-15 13:02:07 1WEeqf-0000ly-4f alt2.gmail-smtp-in.l.google.com [2a00:1450:4013:c00::1b] Network is unreachable
2014-02-15 13:02:11 1WEeTw-0000Sp-DG alt1.gmail-smtp-in.l.google.com [173.194.66.26] Connection timed out
2014-02-15 13:02:11 1WEeTw-0000Sp-DG alt2.gmail-smtp-in.l.google.com [2a00:1450:4013:c00::1b] Network is unreachable
2014-02-15 13:02:11 1WEeTw-0000Sp-DG alt3.gmail-smtp-in.l.google.com [2a00:1450:4001:c02::1b] Network is unreachable
2014-02-15 13:02:11 1WEeTw-0000Sp-DG alt4.gmail-smtp-in.l.google.com [2a00:1450:4008:c01::1b] Network is unreachable
2014-02-15 13:02:11 1WEeTw-0000Sp-DG == diego.sueiro@gmail.com R=dnslookup T=remote_smtp defer (101): Network is unreachable

According to this link, maybe outbound connections on tcp/25 are blocked:
http://stackoverflow.com/questions/18776027/exim-mail-transfer-agent-cant-deliver-mail


Hey there,

At fisrt, mail wasn't send from wordpres when I created a test_user
Then read the present thread and I've tried with installing exim4.

I haven't been able to send mail from the comand line. I can give a Cc: and a Subject but then I can't escape the body of the mail. I've tried exim4 in a single line with no success.

However I receive mails from worpress@mysite.com ... but the test_user doesn't receive his mail with his password.

Any clue on this ?

Thanks in adavance

+1 for a step by step guide about this included/aside worpdpress install for people coming from a click-and-thats-all shared hosts !
Edit the above : My test_user DOES receive the password on subscription.

I had the same issue, with wordpress notification using Exim MTA.
What i did, reinstall Exim with mailutils using below command ...save my day.

apt-get install exim4-daemon-light mailutils

Regards

Have another answer? Share your knowledge.