SPF テスト

http://dnsops.jp/bof/20080709/kazu.pdf からメモ

メールで動作確認

  • spf-test _at_ openspf.org
  • エラーメールとして SPF 検査の結果を返してくれる

送ってみたらこんなエラーメールの形で結果が。

This is the mail system at host test.marvista.jp.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to 

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

: host mailout02.controlledmail.com[72.81.252.18] said:
    550 5.7.1 : Recipient address rejected: SPF Tests:
    Mail-From Result="pass": Mail From="foo@example.jp" HELO
    name="bar.example.jp" HELO Result="none" Remote IP="xxx.xxx.xxx.xxx" (in
    reply to RCPT TO command)

分かり難い --;)。ちなみに SPF 検査に失敗すると

Remote host said: 550 5.7.1 : Recipient address rejected:
SPF Tests: Mail-From Result="fail": Mail From="foo@example.jp"
HELO name="bad.example.jp" HELO Result="none" Remote IP="yyy.yyy.yyy.yyy" Giving up on 72.81.252.18.

でした。