When sending the email From foobar@yahoo.com to barfoo@yahoo.com, Yahoo says "not compliant with our policy, bla bla bla" because Yahoo knows foobar@yahoo.com was not sent through a Yahoo SMTP.
Maybe if we could have From: and Reply-to: it would avoid problem with Yahoo (and others like orange.fr and laposte.net)