Namecheap INVALID_ADDR: enter the Amazon SES MX record
Namecheap shows INVALID_ADDR when you paste the whole SES MX line, priority included, into one box. Namecheap wants the mail server in Value and the 10 in Priority. This page gives the exact field entries, the matching SPF TXT record, and a dig check to confirm SES can see it.
Sohail Hussain9 min readShort answer
- Namecheap wants only the hostname in the Value box. Enter feedback-smtp.us-east-1.amazonses.com (your SES region may differ) as the Value and 10 in the separate, unlabeled Priority box.
- If you can't find an MX option under Host Records, set Mail Settings to Custom MX first. Namecheap only shows MX entry fields there.
You pasted the MX line from the SES console into Namecheap and got this:
Error occured: INVALID_ADDR : '10 feedback-smtp.us-east-1.amazonses.com' should not be an IP/ URL for MX record.
The error is about the form, not about your SES setup. SES shows the MX record as one string, and Namecheap splits that string across two fields.
Why Namecheap shows INVALID_ADDR
SES publishes the record in zone-file style: priority, a space, then the server. AWS's own documentation says the number 10 is the preference order and needs to be entered into a separate value field as specified by your DNS provider's GUI. Namecheap's form has a Value box for the hostname and a Priority box for the number.
When the Value box receives 10 feedback-smtp..., the validator sees a space and a leading number. That can't be a hostname, so it reports the string as an IP or URL. That is my reading of the message; Namecheap doesn't document the validator's logic.
Two other things trip people up on the same screen:
- The MX fields aren't where you expect. Mailgun's Namecheap guide notes that MX records are not listed in the default list of records and that you must change the Email Settings option to "Custom MX". Microsoft's guide for Namecheap also adds MX records under MAIL SETTINGS with Custom MX selected, and says the Priority box is the unnamed box to the right of the Value box.
- The Host field. Namecheap appends your domain, so you enter only the subdomain label, such as
mailorbounce.
Step-by-step fix
1. Open Advanced DNS
- Sign in to Namecheap and open Domain List.
- Click Manage next to your domain.
- Open the Advanced DNS tab.
Microsoft's Namecheap instructions use the same path: Domain List, select the domain, choose Manage, then Advanced DNS.
2. Switch Mail Settings to Custom MX
- Scroll below Host Records to Mail Settings.
- In the Email Forwarding drop-down, choose Custom MX. Microsoft notes you might have to scroll down the drop-down list to find it.
- Click Add New Record in that section.
Check existing mail first
Custom MX replaces whatever preset the domain used before, such as Namecheap forwarding or a Gmail preset. If the root domain receives real mail, write down its current MX records and re-add them, or you will break incoming mail. HighLevel's Namecheap guide warns about this exact effect on Google Workspace.
3. Enter the SES MX record in separate fields
Fill the new row like this:
| Field | Enter |
|---|---|
| Type | MX Record |
| Host | mail (or whatever MAIL FROM subdomain you chose in SES) |
| Value | feedback-smtp.us-east-1.amazonses.com |
| Priority | 10 |
| TTL | Automatic, or a short value such as 5 min |
The hostname contains your AWS Region. SES fills in the Region where you set up the MAIL FROM domain, such as us-west-2, us-east-1, or eu-west-1. Copy the exact value from your SES console instead of typing the one above.
Then click the green check mark to save. Microsoft calls it the Save Changes check mark icon.
The finished record, in zone-file notation, is:
mail.example.com. MX 10 feedback-smtp.us-east-1.amazonses.com.
4. Add the SPF TXT record on the same subdomain
SES needs two records. AWS says you publish an MX record to receive bounce and complaint notifications, and an SPF (type TXT) record to prove Amazon SES is authorized to send. Back under Host Records, click Add New Record and choose TXT Record:
| Field | Enter |
|---|---|
| Host | mail (same label as the MX) |
| Value | v=spf1 include:amazonses.com ~all |
| TTL | Automatic |
On quotation marks, AWS says that the SPF's TXT record value usually has to include the quotation marks, but some DNS providers don't require them. In Namecheap's form I enter the value without quotes; the quotes in the SES console are zone-file formatting. If SES never detects the SPF record, check how the value was stored.
This TXT sits on the MAIL FROM subdomain. It is separate from the SPF record at your root domain, so don't merge the two.
How to tell which cause you have
| Symptom | Likely cause | Fix |
|---|---|---|
| INVALID_ADDR on save | Priority typed inside Value | Put only the hostname in Value, 10 in Priority |
| No MX option when adding a record | Mail Settings not on Custom MX | Switch Mail Settings to Custom MX |
| Record saves but SES stays "Pending" | Host entered as the full domain, or DNS not yet propagated | Use only the label, then wait and check with dig |
| SES status "Failed" | Multiple MX records on the MAIL FROM subdomain, or no record for 72 hours | Leave exactly one MX, then restart the setup in SES |
| Root-domain mail stopped | Custom MX switch dropped the old MX records | Re-add your mailbox provider's MX records at host @ |
Check that SES sees the record
- In the SES console, open Identities and select your domain.
- Find the Custom MAIL FROM domain pane. The state is "pending" while SES looks for the MX record, and AWS says it attempts to detect the required MX record for 72 hours; after that it changes to Failed.
- From a terminal, confirm the record is public:
dig MX mail.example.com +short
Expect 10 feedback-smtp.us-east-1.amazonses.com. back. An empty answer means the record wasn't saved or the Host is wrong. If you only need to confirm propagation, our glossary entries on DNS records and MX records explain what resolvers return.
Exactly one MX record
AWS says you must publish exactly one MX record on the MAIL FROM domain, and setup fails if there are several. Pick a subdomain nothing else uses for mail, not your main sending domain.
Checklist before you try again
- The Value box contains only the hostname, with no
10, no spaces. 10is in the unnamed Priority box to the right of Value.- Host is the subdomain label only, not
mail.example.com. - Mail Settings is on Custom MX, and existing root-domain MX records are re-added if you use them.
- The MAIL FROM subdomain has exactly one MX record.
- A TXT record with the SPF value exists on the same subdomain.
- The Region in the hostname matches the one SES shows.
If the error still appears
- The Value box still holds the full line. Clear it completely, then type the hostname again. Browsers sometimes restore old input.
- A trailing dot. Microsoft's Namecheap guide says to make sure the entry ends with a period for its MX value, so Namecheap generally accepts a trailing dot. If your entry is rejected, try it with and without the dot.
- An old MX record on the same host. Edit it instead of adding a second one. Namecheap requires at least one MX record to exist, so add the new record first, then delete the old one.
If nothing works
Contact Namecheap support if the form still rejects a clean hostname, and AWS Support if the records resolve correctly but SES stays Pending or shows Failed. Include the exact error text, the domain, a screenshot of the filled-in form, and the dig output.
Subject: INVALID_ADDR when adding an MX record for Amazon SES MAIL FROM
Hello,
I'm adding an MX record for my Amazon SES custom MAIL FROM domain in Advanced DNS (Mail Settings, Custom MX).
Domain: example.com
Host: mail
Value: feedback-smtp.us-east-1.amazonses.com
Priority: 10
Error text: Error occured: INVALID_ADDR : '10 feedback-smtp.us-east-1.amazonses.com' should not be an IP/ URL for MX record.
Steps already tried: cleared the Value field, entered the hostname only, tried with and without a trailing dot.
Screenshot of the form is attached.
Could you tell me what the form expects, or add the record on my side?
Why SES wants this record
A custom MAIL FROM domain makes the envelope sender, the Return-Path, use your subdomain instead of an amazonses.com one. AWS says it gives you the flexibility to use SPF, DKIM, or both to achieve DMARC validation; for SPF to count toward DMARC, the From domain must match the MAIL FROM domain. For the wider authentication picture, see how to set up SPF, DKIM, and DMARC, and use the email header analyzer to look at the Return-Path of a delivered message.
AWS's full procedure, including the failure states and the behavior-on-MX-failure setting, is in its guide to using a custom MAIL FROM domain. Microsoft's Namecheap DNS walkthrough shows where the Custom MX and Priority fields sit.
Common questions
Is the priority always 10?
For SES, yes: the console gives you 10, and with one MX record on the subdomain the number only matters as a value to enter. Use the number SES shows.
Can I paste the whole line if I use another DNS provider?
Some providers accept the full "priority hostname" string and others split it. AWS says to follow your DNS provider's GUI. If a form complains about an IP or URL, split the fields.
Will this change where my normal email arrives?
Not if the MX record is on a subdomain such as mail and your root-domain MX records stay in place. The risk is the Custom MX switch described above, which can drop presets on the root domain.
How long until SES shows the domain as verified?
AWS says that, depending on your DNS provider, there might be a delay of up to 72 hours before Amazon SES detects the MX record. In practice it is often minutes, but I can't promise a time for Namecheap.
Explore: Email Deliverability
Related Articles
SES "Email address is not verified" but it shows verified
Amazon SES returns "Email address is not verified" when the identity isn't verified in the region your code calls. Identities are per region, so compare the region in the error, the SDK client and the console, then verify the identity there or change the client's region.
Amazon SES production access denied: how to get approved
When Amazon SES denies production access with "reasons cannot be provided due to security reasons", reply on the same support case with specifics: use case, list source and consent, bounce and complaint handling through SNS, opt-out method, and a sample email. Ask for a second review. If that fails, use another sender.
Connection refused #111 on SMTP port 587: how to fix it
Connection refused #111 on port 587 means your server's TCP connection never reached the SMTP host, so a firewall, security group or hosting policy is blocking outbound traffic. Test the port with openssl s_client, open egress, switch to port 2525 or 465, or send through the provider's HTTP API instead.
SPF PermError: Too Many DNS Lookups (10-Lookup Limit) Fix
SPF allows 10 DNS-querying terms per check (include, a, mx, ptr, exists, redirect). Go past that and receivers return permerror, which counts as a fail. Fix it by removing unused includes, dropping mx/a/ptr, moving services to subdomains, flattening only senders you control, and keeping a single SPF record.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free