Understanding SPF, DKIM and DMARC (Email Authentication)
English Knowledge
Enterprise guidance
Why Email Authentication Matters
Without proper authentication, it is relatively easy for someone to send email that appears to come from your domain without actually being sent by you, a technique commonly used in phishing and spam. SPF, DKIM, and DMARC are three related standards that work together to prevent this and improve the likelihood your legitimate email reaches the inbox rather than the spam folder.
If you have not yet read DNS Management: A/CNAME/MX/TXT Records Explained, it covers the TXT record type these standards are built on.
What SPF Does
SPF, short for Sender Policy Framework, is a DNS record listing which mail servers are authorized to send email on behalf of your domain. When a receiving mail server gets a message claiming to be from your domain, it checks the SPF record to confirm the sending server is actually on the authorized list. If it is not, the message is more likely to be flagged as spam or rejected outright.
What DKIM Does
DKIM, short for DomainKeys Identified Mail, adds a digital signature to outgoing email, generated using a private key that only your mail server has access to. Receiving servers can verify this signature against a public key published in your DNS records, confirming the message genuinely originated from your domain and was not altered in transit.
What DMARC Does
DMARC, short for Domain based Message Authentication Reporting and Conformance, builds on top of SPF and DKIM by telling receiving mail servers what to do when a message fails either check, such as rejecting it outright, marking it as spam, or simply monitoring and reporting without taking action. DMARC also provides reporting, giving you visibility into who is sending email using your domain, including any unauthorized attempts.
How These Three Work Together
SPF and DKIM each provide a different method of verifying legitimacy, and DMARC ties them together with an enforcement policy, telling receiving servers how strictly to act on failures. Having all three properly configured significantly improves both your email deliverability and your protection against domain impersonation.
Setting These Up
Each of these standards is implemented as a specific TXT record added to your domain's DNS settings. See Managing DNS Zones in cPanel/Plesk for where to add these records within your control panel. The exact record values are typically provided by your email hosting provider and should be entered precisely as given, since even small errors can cause authentication to fail.
Verifying Your Setup
After adding these records, several free online tools allow you to check whether SPF, DKIM, and DMARC are correctly configured and passing for your domain. It is worth verifying this after initial setup and periodically afterward, particularly if you add a new email sending service that also needs to be authorized.
If You Are Having Deliverability Issues
If your legitimate email is landing in recipients' spam folders, missing or misconfigured authentication records are one of the most common underlying causes. See Troubleshooting Email Delivery and Spam Issues for a broader look at diagnosing delivery problems.
المعرفة باللغة العربية السعودية
فهم SPF وDKIM وDMARC (مصادقة البريد الإلكتروني)
لماذا تهم مصادقة البريد الإلكتروني
من دون مصادقة صحيحة، يكون من السهل نسبيًا أن يرسل شخص ما بريدًا إلكترونيًا يبدو أنه صادر من نطاقك من دون أن يكون قد أُرسل فعليًا من قبلك، وهي تقنية شائعة الاستخدام في التصيد الاحتيالي والبريد المزعج. تُعد SPF وDKIM وDMARC ثلاثة معايير مترابطة تعمل معًا لمنع ذلك وتحسين احتمال وصول بريدك الإلكتروني الشرعي إلى صندوق الوارد بدلًا من مجلد البريد المزعج.
إذا لم تكن قد قرأت بعد إدارة DNS: شرح سجلات A/CNAME/MX/TXT، فهو يغطي نوع سجل TXT الذي تُبنى عليه هذه المعايير.
ما الذي يفعله SPF
SPF، اختصار لـ Sender Policy Framework، هو سجل DNS يدرج خوادم البريد المخوّلة بإرسال البريد الإلكتروني نيابةً عن نطاقك. عندما يتلقى خادم بريد مستلم رسالة تدّعي أنها من نطاقك، فإنه يتحقق من سجل SPF للتأكد من أن الخادم المُرسِل موجود بالفعل في القائمة المخوّلة. وإذا لم يكن كذلك، فمن المرجح أن تُوسَم الرسالة كبريد مزعج أو تُرفض رفضًا مباشرًا.
ما الذي يفعله DKIM
DKIM، اختصار لـ DomainKeys Identified Mail، يضيف توقيعًا رقميًا إلى البريد الإلكتروني الصادر، يُنشأ باستخدام مفتاح خاص لا يملك حق الوصول إليه إلا خادم البريد لديك. يمكن للخوادم المستلمة التحقق من هذا التوقيع بمقارنته بمفتاح عام منشور في سجلات DNS لديك، مما يؤكد أن الرسالة نشأت فعلًا من نطاقك ولم تُعدَّل أثناء النقل.
ما الذي يفعله DMARC
DMARC، اختصار لـ Domain based Message Authentication Reporting and Conformance، يبني فوق SPF وDKIM من خلال إخبار خوادم البريد المستلمة بما يجب فعله عندما تفشل رسالة في أي من عمليتي التحقق، مثل رفضها مباشرةً، أو وسمها كبريد مزعج، أو الاكتفاء بالمراقبة والإبلاغ من دون اتخاذ إجراء. كما يوفر DMARC تقارير تمنحك رؤية حول من يرسل البريد الإلكتروني باستخدام نطاقك، بما في ذلك أي محاولات غير مصرح بها.
كيف تعمل هذه العناصر الثلاثة معًا
يوفّر كلٌّ من SPF وDKIM طريقة مختلفة للتحقق من الشرعية، ويربط DMARC بينهما من خلال سياسة إنفاذ، موجّهًا الخوادم المستقبِلة إلى مدى الصرامة التي يجب أن تتعامل بها مع حالات الفشل. إن تكوين العناصر الثلاثة جميعها بشكل صحيح يحسّن بدرجة كبيرة كلًا من قابلية تسليم بريدك الإلكتروني وحمايتك من انتحال نطاقك.
إعداد هذه العناصر
يُنفَّذ كل معيار من هذه المعايير كسجل TXT محدد يُضاف إلى إعدادات DNS الخاصة بنطاقك. راجع إدارة مناطق DNS في cPanel/Plesk لمعرفة مكان إضافة هذه السجلات داخل لوحة التحكم الخاصة بك. عادةً ما يقدّم مزوّد استضافة البريد الإلكتروني لديك قيم السجلات الدقيقة، وينبغي إدخالها تمامًا كما هي معطاة، إذ إن حتى الأخطاء الصغيرة قد تؤدي إلى فشل المصادقة.
التحقق من إعدادك
بعد إضافة هذه السجلات، تتيح لك عدة أدوات مجانية عبر الإنترنت التحقق مما إذا كان SPF وDKIM وDMARC مكوّنة بشكل صحيح وتنجح في التحقق لنطاقك. يجدر التحقق من ذلك بعد الإعداد الأولي وبشكل دوري بعد ذلك، لا سيما إذا أضفت خدمة جديدة لإرسال البريد الإلكتروني تحتاج أيضًا إلى التفويض.
إذا كنت تواجه مشكلات في قابلية التسليم
إذا كان بريدك الإلكتروني المشروع يصل إلى مجلدات البريد العشوائي لدى المستلمين، فإن سجلات المصادقة المفقودة أو المكوّنة بشكل غير صحيح تُعدّ من أكثر الأسباب الأساسية شيوعًا. راجع استكشاف مشكلات تسليم البريد الإلكتروني والبريد العشوائي وإصلاحها للحصول على نظرة أوسع حول تشخيص مشكلات التسليم.
Frequently asked questions
Clear, accountable guidance for organizations evaluating infrastructure, security, compliance and digital transformation with K® (Kenzie) of SAUDI GULF HOSTiNG.
10 results
What are SPF, DKIM, and DMARC in email authentication?
SPF, DKIM, and DMARC are related email authentication standards. SPF lists which mail servers may send for your domain, DKIM adds a verifiable digital signature to outgoing messages, and DMARC tells receiving servers how to handle messages that fail SPF or DKIM while also providing reporting.
ما هي SPF وDKIM وDMARC في مصادقة البريد الإلكتروني؟
SPF وDKIM وDMARC هي معايير مترابطة لمصادقة البريد الإلكتروني. تحدد SPF خوادم البريد المسموح لها بالإرسال باسم نطاقك، وتضيف DKIM توقيعًا رقميًا يمكن التحقق منه على الرسائل الصادرة، وتوضح DMARC لخوادم الاستقبال كيفية التعامل مع الرسائل التي تفشل في SPF أو DKIM مع توفير تقارير.
Does my business domain need SPF, DKIM, and DMARC?
Yes, if your domain sends email, these records are important. They help prevent others from sending messages that appear to come from your domain and improve the chance that legitimate email reaches the inbox instead of the spam folder.
هل يحتاج نطاق شركتي إلى SPF وDKIM وDMARC؟
نعم، إذا كان نطاقك يرسل بريدًا إلكترونيًا، فهذه السجلات مهمة. فهي تساعد على منع الآخرين من إرسال رسائل تبدو كأنها صادرة من نطاقك، وتحسن فرصة وصول بريدك الشرعي إلى صندوق الوارد بدلًا من مجلد الرسائل غير المرغوب فيها.
What do I need before setting up SPF, DKIM, and DMARC?
You need access to your domain DNS settings and the exact TXT record values from your email hosting provider. These standards are published as TXT records, so the values should be entered precisely as provided.
ما الذي أحتاجه قبل إعداد SPF وDKIM وDMARC؟
تحتاج إلى صلاحية الوصول إلى إعدادات DNS الخاصة بنطاقك، وإلى قيم سجلات TXT الدقيقة من مزود استضافة البريد الإلكتروني. يتم نشر هذه المعايير كسجلات TXT، لذلك يجب إدخال القيم كما هي بالضبط.
What risks do SPF, DKIM, and DMARC help reduce?
They help reduce domain impersonation, phishing, and spam sent as if it came from your domain. Without proper authentication, it is relatively easy for someone to send email that appears to use your domain without being sent by you.
ما المخاطر التي تساعد SPF وDKIM وDMARC على تقليلها؟
تساعد هذه السجلات على تقليل انتحال النطاق، والتصيد، والرسائل المزعجة التي تُرسل وكأنها من نطاقك. بدون مصادقة صحيحة، يكون من السهل نسبيًا أن يرسل شخص بريدًا يبدو أنه يستخدم نطاقك دون أن يكون صادرًا منك.
How are SPF, DKIM, and DMARC implemented?
They are implemented by adding specific TXT records to your domain’s DNS settings. In hosting control panels, these records are typically added through DNS zone management, such as the DNS zone tools in cPanel or Plesk.
كيف يتم تطبيق SPF وDKIM وDMARC؟
يتم تطبيقها بإضافة سجلات TXT محددة إلى إعدادات DNS الخاصة بنطاقك. في لوحات تحكم الاستضافة، تتم إضافة هذه السجلات عادةً من خلال إدارة منطقة DNS، مثل أدوات إدارة DNS في cPanel أو Plesk.
How can I verify that SPF, DKIM, and DMARC are working?
After adding the TXT records, use free online checking tools to confirm that SPF, DKIM, and DMARC are correctly configured and passing for your domain. Verification is recommended after initial setup and periodically afterward.
كيف أتحقق من أن SPF وDKIM وDMARC تعمل بشكل صحيح؟
بعد إضافة سجلات TXT، استخدم أدوات فحص مجانية عبر الإنترنت للتأكد من أن SPF وDKIM وDMARC مضبوطة بشكل صحيح وتنجح على نطاقك. يُنصح بالتحقق بعد الإعداد الأولي وبشكل دوري بعد ذلك.
Why is legitimate email still going to spam?
One common cause is missing or misconfigured SPF, DKIM, or DMARC records. Check that the DNS TXT records match the values from your email provider, and review broader email delivery and spam troubleshooting if the issue continues.
لماذا لا يزال البريد الشرعي يصل إلى الرسائل غير المرغوب فيها؟
أحد الأسباب الشائعة هو فقدان سجلات SPF أو DKIM أو DMARC أو ضبطها بشكل غير صحيح. تحقق من أن سجلات TXT في DNS تطابق القيم المقدمة من مزود البريد، وراجع خطوات أوسع لاستكشاف مشاكل تسليم البريد والرسائل المزعجة إذا استمرت المشكلة.
When should I escalate an SPF, DKIM, or DMARC issue to my email provider?
Escalate when you do not have the required TXT record values, when verification tools show failures after you entered the provider’s values precisely, or when deliverability problems continue after checking for missing or misconfigured authentication records.
متى يجب تصعيد مشكلة SPF أو DKIM أو DMARC إلى مزود البريد؟
صعّد المشكلة عندما لا تتوفر لديك قيم سجلات TXT المطلوبة، أو عندما تُظهر أدوات التحقق وجود فشل بعد إدخال قيم المزود بدقة، أو عندما تستمر مشاكل التسليم بعد فحص سجلات المصادقة المفقودة أو المضبوطة بشكل غير صحيح.
Are SPF, DKIM, and DMARC relevant for organizations in Saudi Arabia?
Yes. The standards are DNS-based email authentication mechanisms used by receiving mail servers regardless of region. Any Saudi organization that sends email from its domain can use them to improve deliverability and reduce domain impersonation attempts.
هل SPF وDKIM وDMARC مهمة للجهات في السعودية؟
نعم. هذه المعايير آليات مصادقة بريد إلكتروني مبنية على DNS وتستخدمها خوادم استقبال البريد بغض النظر عن المنطقة. أي جهة سعودية ترسل بريدًا من نطاقها يمكنها استخدامها لتحسين التسليم وتقليل محاولات انتحال النطاق.
What is the next action to secure my domain’s email authentication?
Collect the exact SPF, DKIM, and DMARC TXT records from your email hosting provider, add them to your domain DNS settings, then verify them with online tools. Recheck whenever you add a new email sending service that must be authorized.
ما الخطوة التالية لتأمين مصادقة البريد الإلكتروني لنطاقي؟
اجمع سجلات TXT الدقيقة الخاصة بـ SPF وDKIM وDMARC من مزود استضافة البريد، ثم أضفها إلى إعدادات DNS لنطاقك، وبعدها تحقق منها باستخدام أدوات فحص عبر الإنترنت. أعد الفحص كلما أضفت خدمة جديدة لإرسال البريد تحتاج إلى تفويض.
Share enterprise knowledge
Share this article with your team
Help colleagues and clients discover this governed enterprise resource.