Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Yahoo is marking our mail as spam. We are using PHP Zend framework to send the mail. Mail header says that Domain Key is failed.

Authentication-Results:; domainkeys=fail (bad sig);; dkim=pass (ok)

We configured our SMTP server (Same server used to send mail from zend framework.) in outlook and send the mail to yahoo. This time yahoo says domainkeys is pass.

Authentication-Results:; domainkeys=pass (ok);; dkim=pass (ok)

Domainkey is added in mail header on our server which is used by both outlook client and PHP client. yahoo recognize the mail which is sent from outlook and yahoo does not recognize the mail from PHP client. As far as I know, Signing the email is done on the server side with help of domain key. PHP and Outlook uses the same server to sign the mail. But why yahoo handling differently? What I am missing here? Any Idea? Can anyone help me?

share|improve this question

It looks like you need to tell the PHP framework what domain name you are signing the email as ... basically change "" to "". I do not know anything about the framework but for signing stuff as DKIM and DomainKeys you need several things:

  1. Private Key file
  2. Domain (this is the domain that has the policy TXT records)
  3. Selector (this is the subdomain that contains the policy TXT records, normally something like "dkim")

If you could give a bit more information on the code used to sign the message or setup signing and the full header records (in Yahoo, click the "Action" button then select "Full Header") will help.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.