Sending email with WordPress on Hetzner

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 (in my case that is 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 <>: Sender verify failed
2014-02-02 09:16:53 sender verify fail for <>: Unrouteable address
2014-02-02 09:16:53
 SMTP error from remote mail server after MAIL FROM:<> SIZE=1747: host []: 550-Verification failed for <>\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 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.

7 thoughts on “Sending email with WordPress on Hetzner

  1. Thanks for this info, it’s really helped with those nasty bounces from Hetzner/Wordpress. Much appreciated.

    1. I’m interested in this pls , it will be awesome if you want to point us to how to resolve this issue .

      Thx in advance cheers mate.

  2. 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.

Comments are closed.