انتقل إلى المحتوى

الدروس البريد متوسط1 دقائق قراءة

Set Up SPF, DKIM and DMARC for Your Domain

Configure SPF, DKIM and DMARC DNS records so your email is trusted by receiving servers and your domain is protected against spoofing.

بواسطة فريق تحرير ZSOLNET آخر تحديث

هذه الصفحة غير متاحة بالعربية بعد، لذا تُعرض بالإنجليزية.

أهم النقاط

  • SPF lists which servers may send mail for your domain.
  • DKIM adds a cryptographic signature that proves a message wasn't altered and came from your domain.
  • DMARC tells receivers what to do when SPF or DKIM fail, and sends you reports.

Receiving mail servers use three DNS-based checks to decide whether a message claiming to be from your domain is genuine. Setting all three up correctly improves deliverability and stops others from impersonating you.

1. SPF — authorised senders

SPF (Sender Policy Framework) is a TXT record at your domain that lists the servers allowed to send mail on its behalf.

v=spf1 include:_spf.your-email-provider.example ~all
  • include: adds a provider’s list of servers. Use the value your email provider documents.
  • ~all (soft fail) marks other senders as suspicious; -all (hard fail) rejects them.

2. DKIM — signed messages

DKIM (DomainKeys Identified Mail) signs outgoing mail with a private key. Receivers fetch the matching public key from DNS to verify the signature.

Your email provider generates the key and tells you the record to publish, for example:

TypeNameValue
TXTselector._domainkeyv=DKIM1; k=rsa; p=MIIBIjANBgkq…

The selector is chosen by your provider. Publish the record exactly as given, then enable signing in your provider’s dashboard.

3. DMARC — policy and reporting

DMARC ties SPF and DKIM to the domain in the visible From address and tells receivers what to do when checks fail.

_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

Roll out in stages:

  1. p=none — monitor only. Review the aggregate reports sent to the rua address.
  2. p=quarantine — failing mail goes to spam once legitimate senders pass.
  3. p=reject — failing mail is refused outright.

Verify your records

Use our DNS lookup tool with record type TXT to confirm each record is published, or query from a terminal:

dig TXT example.com +short
dig TXT _dmarc.example.com +short

Changes take effect as cached answers expire, usually within the record’s TTL.

الأسئلة الشائعة

Can I have more than one SPF record?

No. A domain must have a single SPF record. Combine multiple senders into one record using several include: mechanisms.

Should I start DMARC with p=reject?

No. Start with p=none to collect reports, fix any legitimate senders that fail, then move to quarantine and finally reject.

شارك X LinkedIn Facebook

الدخول إلى حسابك

أدِر نطاقاتك واستضافتك وفواتيرك من مكان واحد.

اتصال آمن مباشرة مع منطقة العملاء في ZSOLNET.

افتح لوحة تحكم ZSOLNET

ليس لديك حساب؟