ตรวจสอบเรคคอร์ด SPF
ตรวจสอบ SPF: อ่านเรคคอร์ด SPF ของโดเมน แสดงรายการกลไก และนับจำนวนการค้นหา DNS เทียบกับขีดจำกัด 10 ครั้ง
Queries go to Cloudflare’s public DNS over HTTPS service when you press the button. Up to 15 queries are made to follow include records.
เกี่ยวกับตรวจสอบเรคคอร์ด SPF
ตรวจสอบ SPF: อ่านเรคคอร์ด SPF ของโดเมน แสดงรายการกลไก และนับจำนวนการค้นหา DNS เทียบกับขีดจำกัด 10 ครั้ง
เป็นส่วนหนึ่งของหมวด “ข้อมูลและเครือข่าย” ของ SmartCalcy ทำงานในเบราว์เซอร์โดยไม่ต้องมีบัญชี ใช้สกุลเงินและหน่วยของคุณ (เปลี่ยนได้ที่ด้านบนของหน้า) และให้ค่าประมาณเพื่อเป็นข้อมูลเท่านั้น จึงควรตรวจสอบแนวทางอย่างเป็นทางการก่อนนำผลลัพธ์ไปใช้
วิธีใช้ตรวจสอบเรคคอร์ด SPF
คำนวณอะไรและใช้เมื่อไร
อ่านระเบียน SPF ของโดเมน ซึ่งเป็นรายชื่อเซิร์ฟเวอร์ที่ได้รับอนุญาตให้ส่งอีเมลในนามโดเมนนั้น และตรวจหาข้อผิดพลาดที่พบบ่อย ได้แก่ มีระเบียนมากกว่าหนึ่งรายการ ไม่มีนโยบาย “all” และมีการค้นหา DNS เกิน 10 ครั้งซึ่งทำให้ SPF ล้มเหลว เครื่องมือจะติดตามระเบียน include เพื่อนับจำนวนการค้นหา
วิธีใช้ทีละขั้นตอน
- กรอกโดเมน เช่น example.com
- กด “ตรวจสอบ SPF”
- ดูผลการตรวจและจำนวนการค้นหา DNS ที่ใช้ไปจาก 10 ครั้ง
- ตรวจดูรายการกลไกและคำเตือนต่าง ๆ
ความหมายของแต่ละช่อง
- Domain ชื่อ – The domain used ที่ the sender’s address.
วิธีอ่านผลลัพธ์
- Verdict – Looks valid, or Needs attention when a problem is found.
- Policy – What happens to mail from servers that are not listed: hard fail, soft fail, neutral or allow.
- DNS lookups – Lookups needed by include, a, mx, ptr, exists and redirect terms, compared with the limit of 10.
- Mechanisms – Every term in the record, with included records indented beneath their parent.
สูตร
The record is the TXT value starting v=spf1. Each include, a, mx, ptr, exists or redirect term costs one DNS lookup, and included records add their own. ip4 and ip6 terms and “all” cost none. The RFC limit is 10 lookups.
ตัวอย่างการคำนวณ
v=spf1 include:_spf.example.net a mx -all uses three lookups for its own terms plus those inside the included record, and ends in -all, so unlisted servers are rejected.
สมมติฐานและข้อจำกัด
- At most 15 queries are made while following includes, and nesting stops after 5 levels.
- A domain may need a record only for mail it sends. Domains that send no mail should publish v=spf1 -all.
- The check does not test whether a particular server would pass.
ข้อผิดพลาดที่พบบ่อย
- Publishing two SPF records. Only one คือ allowed, so merge them into one.
- Ending with +all, which lets anyone send as your domain.
- Adding every email service as an include and passing 10 lookups, which turns SPF into a permanent error.
คำถามที่พบบ่อย
SPF คืออะไร?
Sender Policy Framework คือระเบียน DNS ที่ระบุรายชื่อเซิร์ฟเวอร์ที่ได้รับอนุญาตให้ส่งอีเมลในนามโดเมน
-all กับ ~all ต่างกันอย่างไร?
-all ขอให้ผู้รับปฏิเสธผู้ส่งที่ไม่อยู่ในรายการ ส่วน ~all ขอให้รับไว้แต่ทำเครื่องหมายว่าน่าสงสัย
ทำไมจึงจำกัดการค้นหาไว้ที่ 10 ครั้ง?
เพื่อป้องกันไม่ให้ระเบียนบังคับให้ผู้รับต้องสืบค้น DNS ต่อกันเป็นสายยาว หากเกินขีดจำกัด SPF จะส่งคืนข้อผิดพลาดถาวร
SPF เพียงอย่างเดียวพอป้องกันการปลอมแปลงหรือไม่?
ไม่พอ ควรใช้ร่วมกับ DKIM และ DMARC
เครื่องมือนี้ส่งอีเมลหรือไม่?
ไม่ เครื่องมือนี้อ่านระเบียน DNS เท่านั้น