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

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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

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