hatena ã¯ä»ããSPF宣è¨ãã¾ãããã
ã©ããã hatena 㯠SPF宣è¨ãã¦ãªãã¿ããã»ã»ã»ï¼ï¼
ããï¼SPFï¼ãªã«ããï¼ä½ã®ãã¨ï¼ãã£ã¦ãªæ¹ãå¤ãã¨ãããã¾ãã
紫外線から守ってくれる奴ã§ã¯ããã¾ããã
SPFã¨ã¯é»åã¡ã¼ã«ã®éä¿¡ãã¡ã¤ã³èªè¨¼ã®ã²ã¨ã¤ã§ãããã®ãã¡ã¤ã³ããã¯ãã®IPã¢ãã¬ã¹ã§ã¡ã¼ã«éããï¼ãã¨DNSã«æ¸ãã¦ããæ¹æ³ã§ããyahooã¡ã¼ã«ãgmailãªã©ã®SPFèªè¨¼ã«å¯¾å¿ããåä¿¡ãµã¼ãã§ã¯ã¡ã¼ã«ãåä¿¡ããã¨ã"Envelope From"ã®ãã¡ã¤ã³ã§DNS TXTã¬ã³ã¼ããå¼ãã¾ããããã«éä¿¡ãµã¼ãã®IPãåæãã¦ããã®ã§ãããã¨ã»ãã·ã§ã³IPãæ¯è¼ããã°ããªããã¾ããã¡ã¼ã«ãã©ãããç°¡åã«è¦åããããã¨è¨ãæè¡ã§ãã
http://ja.wikipedia.org/wiki/Sender_Policy_Framework
ããã宣è¨ãã¦ããªãã¨ããªããã¾ãã¡ã¼ã«ããã©ããã®å¤å®ãã§ãã¾ãããä»ã¯ã¾ã ããã»ã©åé¡ã«ã¯ãªãã¾ããããæºå¸¯å社ã¯ãã§ã«SPFãå©ç¨ãããªããã¾ãã¡ã¼ã«ã®å¤å®æ©è½ãæä¾ãã¦ãã¾ããææªãããªããã¾ãã¦ãããã©ããåãããªãã¡ã¼ã«ã¯æ¨ã¦ããã¨ãããã¸ãã¯ãçµã¿è¾¼ãã§ãã¦ãããããããã¾ããã
DNSã«TXTã¬ã³ã¼ãæ¸ãã ããªã®ã§ãéä¿¡ãã¡ã¤ã³èªè¨¼ã®ãªãã§ã¯ä¸çªç°¡åã§ããä»ã©ããã¡ã¼ã«éãäºæ¥è ã¯SPFè¨å®ã¯å¿ é ã ã¨ããã¾ãã
hatena.com ãã¡ã¤ã³ã® gmailã§ã®èªè¨¼çµæã§ãããããã¯ãåä¿¡ãããããã¿ãã¨ãããããã«ãªã£ã¦ã¾ããï¼ãããã©ããªã³ã°ã¨ããã¾ãï¼
Received-SPF: neutral (google.com: 59.106.108.66 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=59.106.108.66;
ãããªæãã« "neutral" ã«ãªã£ã¦ãã¾ãã¾ããTXTã¬ã³ã¼ãç¡ãããèªè¨¼ã§ããªãã£ããã»ã»ã»ã¨è¨ãæå³ã§ãã
TXTã¬ã³ã¼ããããããªããã¯ãhostã³ãã³ãã§ãç°¡åã«ç¢ºèªã§ãã¾ãã
[kazuya@ariel ~] $ host -t txt hatena.com hatena.com has no TXT record [kazuya@ariel ~] $ host -t txt hatena.ne.jp hatena.ne.jp has no TXT record
ã¡ãªã¿ã«ãå½ããåã§ãã Yahoo!ã¡ã¼ã«ã¨ãgmailãªãã㯠ã¡ããã¨å®£è¨ãã¦ã¾ãã
[kazuya@ariel ~]$ host -t txt yahoo.co.jp yahoo.co.jp descriptive text "v=spf1 include:spf.yahoo.co.jp ~all" [kazuya@ariel ~]$ host -t txt spf.yahoo.co.jp spf.yahoo.co.jp descriptive text "v=spf1 include:spf01.yahoo.co.jp include:spf02.yahoo.co.jp include:spf03.yahoo.co.jp include:bulk-spf.yahoo.co.jp ~all"
ãã ãããã§ã¡ãã£ã¨ãã¸ãã¯ãããã¾ãã
å®ã¯ãå
ã»ã©ã¬ã³ã¼ãããªãã£ã hatena.ne.jp ãgmailã§åä¿¡ããã¨ããªããèªè¨¼ãæå(pass)ãã¾ãã
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 59.106.108.66 as permitted sender) client-ip=59.106.108.66;
ããï¼
ãã㯠best guess ã¨ããSPFã®ãªãã·ã§ã³æ©è½ã§ãæ¥ç¶ãã¦ããSMTPãµã¼ãã®ã»ãã·ã§ã³IP(59.106.108.66)ã§éå¼ãããçµæã®PTRã¬ã³ã¼ãã«ãéä¿¡å ã®ãã¡ã¤ã³ãå«ã¾ãã¦ããã° ã便å®çã«èªè¨¼æåã¨ãã¦åãæ±ãããã¨ããä»çµã¿ã§ããéå¼ãIPãè¨å®ã§ããã¨ãããã¨ã¯ãã®ãã¡ã¤ã³ã®ææè ã®å¯è½æ§ãé«ãã¨ãããã¨ãå©ç¨ãã¦ããã§ããã
ãã®ä»çµã¿ãgmail ã§ã¯ONã«ãªã£ã¦ãã¾ãããYahoo!ã¡ã¼ã«ã§ã¯OFFã«ãªã£ã¦ããããã§ããSPFãæ¡å¤§è§£éãããå¦ããªã®ã§ãã©ã£ã¡ã§ãè¯ãã¨æãã¾ããã
ããããããã 㨠ã¯ã¦ãªããæ¥ãã¡ã¼ã«ããèªè¨¼æåãããããèªè¨¼å¯¾è±¡å¤ãã ã£ããããã¨è¨ããã¨ã«ãªãã¾ããããã§ã¯ãåä¿¡ã«ã¼ã«ãã¤ããã¦ã¼ã¶ã¼ã¯æ··ä¹±ãã¦ãã¾ãã¾ãããã
ã¨ã«ãããSPFããè¨å®ãã¦ãããã°ã¯ã£ããããããã§ãã
ãããã³ããªã«å
¥ã£ãã対å¿ãã¦ããããã ãããï¼ã©ããªãã ãã»ã»ã»ã
ãã¼ããæ©ãè¨å®ãã¦ãã ãããã¯ã¦ãªãããã