أهم النقاط
- 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
| Field | Example | Meaning |
|---|---|---|
| Name | @ | The domain itself |
| Priority | 10 | Lower numbers are tried first |
| Value | mail.example.com | The mail server’s hostname |
| TTL | 3600 | Seconds 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
- Get the exact values from your email provider.
- Open your DNS manager (in cPanel: Domains → Zone Editor → Manage).
- Delete MX records for providers you no longer use. Leftovers send some mail to the wrong place.
- Add each MX record with the priority and value given.
- 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.
DNS records for example.com
+ Add RecordCheck 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.