Today I realized that this WordPress installation doesn’t send me any notifications. Here is the solution in case anyone stumbles upon the same issue.
WordPress uses PHP’s mail()
function to send mails from wordpress@example.com
(in my case that is @jftr.de
). I set up WordPress to notify me on new comments, new users, etc. However I never received any emails. This is due to the policies of the shared host this WordPress installation is running on.
This blog runs on one of the shared hosts of Hetzner. A quick look in the maillog they provide (accessible in Hetzner’s konsoleH) verified that all mails sent from my WordPress installation got blocked. This is the reasons the log reads:
2014-02-02 09:16:53 rejected MAIL <wordpress@example.com>: Sender verify failed 2014-02-02 09:16:53 sender verify fail for <wordpress@example.com>: Unrouteable address 2014-02-02 09:16:53 SMTP error from remote mail server after MAIL FROM:<wordpress@example.com> SIZE=1747: host 127.0.0.1 [127.0.0.1]: 550-Verification failed for <wordpress@example.com>\n550-Unrouteable address\n550 Sender verify failed
The last line means that the server could not deliver the email because the remote host rejected it. And why is that? We can easily see that in the first two lines (since the remote host is the same host in this case). The remote host rejected the incoming mail because it was not able to verify the sender. Hetzner of course knows all addresses on the Domain @jftr.de since the domain is hosted by Hetzner. There was no address wordpress@ configured for that domain. Thus Hetzner decided the sent email was not legitimate and rejected it.
The remedy is to create the email address in Hetzner’s configuration interface konsoleH. As soon as that was done all emails came through.
Thanks for this info, it’s really helped with those nasty bounces from Hetzner/Wordpress. Much appreciated.
Thanks a lot 🙂 worked perfect!
Many sites are like Hetzner, where you can send email only using an email with WordPress.
can you please brief out some detailed article on how this can be done?
I’m interested in this too..so pls , it will be awesome if you want to point us to how to resolve this issue .
Thx in advance cheers mate.
Can you please elaborate this further. I have tried a few times to send emails with WordPress but had to face issues.
I have been using Hetzner for a while, not for WordPress though. Didn’t realize they have trouble with emails, but I have a WordPress based site and am riddled with spam, even after having Captcha’s which results my auto-responders getting bounced but I guess this is not the right context. Anyway your blog is a useful read.