Email bounce (due to bad 'from' param) from yahoo on new wordpress + ubuntu 14.04 one click server image

March 10, 2015 2k views
One-Click Install Apps Email WordPress

Yahoo is bouncing emails from my new wordpress install. I am using Contact Form 7. Gmail does not bounce the exact same emails. Postfix log included below. Obviously yahoo does not like my FQDN "from" address... anyone seen this before? Anyone got a clean workaround for this?

Mar 9 23:08:26 blah postfix/pickup[27757]: 8E328600A9: uid=33 from=<www-data>
Mar 9 23:08:26 blah postfix/cleanup[27874]: 8E328600A9: message-id=20b728a132dd234c6f3c0af2dd2b8d33@
Mar 9 23:08:26 blah postfix/qmgr[27758]: 8E328600A9: from=www-data@WP-NewBase-052814, size=683, nrcpt=1 (queue active)
Mar 9 23:08:27 blah postfix/smtp[27876]: 8E328600A9:,[]:25, delay=0.54, delays=0.04/0.02/0.3/0.18, dsn=5.0.0, status=bounced (host[] said: 501 Syntax error in parameters or arguments (in reply to MAIL FROM command))
Mar 9 23:08:27 blah postfix/cleanup[27874]: 4699660100: message-id=20150310030827.4699660100@WP-NewBase-052814
Mar 9 23:08:27 blah postfix/qmgr[27758]: 4699660100: from=<>, size=2658, nrcpt=1 (queue active)
Mar 9 23:08:27 blah postfix/bounce[27877]: 8E328600A9: sender non-delivery notification: 4699660100
Mar 9 23:08:27 blah postfix/qmgr[27758]: 8E328600A9: removed
Mar 9 23:08:27 blah postfix/local[27878]: 4699660100: to=www-data@WP-NewBase-052814, relay=local, delay=0.02, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 9 23:08:27 blah postfix/qmgr[27758]: 4699660100: removed

1 Answer

Edit the following file:

sudo nano /etc/postfix/

Find the myhostname directive and set it to your website's domain name:

myhostname =

Save the file and restart postfix:

sudo service postfix restart
Have another answer? Share your knowledge.