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

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

How to Set Up MX Records for Your Domain

Point your domain's email to the right mail server: what MX records and priorities are, how to add them, and how to check they work.

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

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

أهم النقاط

  • MX records tell the world which servers receive email for your domain.
  • Lower priority numbers are tried first.
  • Only keep MX records for the provider you actually use.

When someone sends you an email, their server looks up your domain’s MX (mail exchanger) records to find out where to deliver it.

Anatomy of an MX record

FieldExampleMeaning
Name@The domain itself
Priority10Lower numbers are tried first
Valuemail.example.comThe mail server’s hostname
TTL3600Seconds resolvers may cache the answer

Two records with priorities 10 and 20 mean: use the first, fall back to the second if it’s unavailable.

Add MX records

  1. Get the exact values from your email provider.
  2. Open your DNS manager (in cPanel: Domains → Zone Editor → Manage).
  3. Delete MX records for providers you no longer use. Leftovers send some mail to the wrong place.
  4. Add each MX record with the priority and value given.
  5. Update your SPF record to include the new provider.

In cPanel, also check Email → Email Routing: choose Local Mail Exchanger if cPanel hosts your email, or Remote if a third party does.

yourdomain.com:2083 › Zone Editor

DNS records for example.com

+ Add Record
TypeNameRecordTTL
MXexample.com.10 mx1.mailprovider.net.3600 4
MXexample.com.20 mx2.mailprovider.net.3600
TXTexample.com.v=spf1 include:mailprovider.net ~all3600
4 Your zone should list only the new provider's MX records, with the lowest priority number as the main server, plus a matching SPF record.

Check it

Run the DNS lookup tool for record type MX. Then send a test message from an outside address and confirm it arrives.

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

Can an MX record point to an IP address?

No. An MX record must point to a hostname, which in turn has its own A or AAAA record.

How long until new MX records work?

Usually within an hour, but resolvers can cache the old records until their TTL expires — up to the TTL value you had set.

شارك X LinkedIn Facebook

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

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

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

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