MX records tell email where to deliver mail for your domain.
Steps
- Go to Domains → DNS Manager
- Click the pencil icon next to your domain
- Click Add Record
- Fill in:
- Type: MX
- Name: @
- Priority: 10
- Mail Server: Your mail server hostname
- TTL: 3600
- Click Confirm
Common Examples
Google Workspace:
Priority: 1 Server: aspmx.l.google.com Priority: 5 Server: alt1.aspmx.l.google.com Priority: 5 Server: alt2.aspmx.l.google.com Priority: 10 Server: alt3.aspmx.l.google.com Priority: 10 Server: alt4.aspmx.l.google.com
Microsoft 365:
Priority: 0 Server: yourdomain-com.mail.protection.outlook.com
Your own server:
Priority: 10 Server: mail.yourdomain.com
Priority
- Lower number = higher priority
- 0 or 1 = primary server
- 10, 20, 30 = backup servers
Important
- Mail server must end with a dot (.) or be a valid hostname
- Don't use IP addresses - use hostnames
- Multiple MX records = redundancy
- Changes take up to 48 hours
Testing
dig MX yourdomain.com nslookup -type=mx yourdomain.com
Or use online MX lookup tools.
Related: Creating SPF Records