450 4.7.1 Cannot Find Your Hostname: Reverse DNS Fix
450 4.7.1 Client host rejected: cannot find your hostname means the receiver could not match your server's IP and name in DNS. What it checks and the fix.
"450 4.7.1 Client host rejected: cannot find your hostname, [IP]" means the receiving mail server looked up the IP address of the server that sent your email and could not get a name that leads back to the same IP. The wording comes from Postfix, a mail server program many companies and hosts run, when its strictest reverse DNS check is switched on. The 450 makes it temporary, so the sending server keeps retrying, but it will keep failing until the sending server's DNS is fixed. That fix belongs to whoever runs the sending server.
Quick answer
Take the IP from the bounce. Make sure it has a PTR record (its reverse DNS name), that the name has an A record, and that the A record points to the very same IP. Set the PTR in your hosting provider's panel and the A record in your domain's DNS. If you use a hosted email provider, this is the provider's job, so send them the bounce. If many unrelated senders suddenly get this error from one company at the same time, their own DNS lookups are probably failing, and their admin needs to know.
What the message means in plain words
When your server connects, the receiving server sees only its IP address, a number. It asks DNS "what is the name for this number?" and then "what is the number for that name?". Postfix's reject_unknown_client_hostname check refuses the connection in three cases, according to its documentation:
- The number has no name at all: the IP has no PTR record.
- The name it returns does not exist: there is no A or AAAA record for it.
- The name exists but points to a different IP than the one that connected.
Reading the numbers and words
- 450: temporary. Postfix uses 450 by default for this check, and always 450 when a DNS lookup failed for a temporary reason. Some admins change it to 550, which makes it a permanent bounce.
- 4.7.1 or 4.7.25: older Postfix versions send 4.7.1. Since Postfix 3.0 the same words come with 4.7.25, the official code for "reverse DNS validation failed" from RFC 7372. Same problem, same fix.
- "Cannot find your reverse hostname" (with the word reverse) comes from a softer check that only needs the first step to work: any PTR record at all.
- [IP] is the address of the sending server, which is the thing that needs fixing.
Is it your side or theirs?
Usually the sender's. The receiver is checking the DNS of the server that delivered the mail, and only the owner of that server can change it. There is one real exception. Because Postfix always answers 450 when a lookup fails temporarily, a receiving server with broken or overloaded DNS can turn away perfectly good senders. If your reverse DNS checks out from several outside tools, and only one company bounces you, tell their admin. Their fix is to repair their DNS resolver, or to use the softer reverse check instead of the strict one.
Check your server
Run both lookups from outside your own network. The name from the first must return the IP in the second:
# IP to name
dig -x 203.0.113.25 +short
# mail.example.com.
# name back to IP
dig mail.example.com A +short
# 203.0.113.25
# Windows
nslookup 203.0.113.25
nslookup mail.example.comFree business email on your own domain
OquMail gives you up to 15 mailboxes on your domain — free — with guided SPF/DKIM/DMARC, webmail, IMAP/SMTP for any mail app, and a send API. Setup is a few DNS records; changes usually take effect within minutes, occasionally up to 48 hours. Start at oqumail.com.
Fix it, step by step
- Confirm which IP sent the mail. It is in brackets at the end of the bounce. If the IP is not one you know, the mail went out from a device or app you did not expect.
- Choose one name for that IP, for example mail.yourdomain.com.
- In your domain's DNS, add an A record for that name pointing to the IP. If the server also has an IPv6 address, add an AAAA record and repeat everything for it.
- In your hosting or cloud provider's panel, set the IP's reverse DNS (PTR) to the same name. Many providers only accept it once the A record works. For an office line, ask your internet provider; most will not set it on home plans.
- Set your mail server's own hostname to that name, so it greets other servers with the same name. In Postfix that is myhostname.
- Wait for DNS to update, run the checks again, and let the queued messages retry. Because the reply was a 450, they are usually still waiting in your queue.
- If you cannot get a PTR at all, stop delivering directly and send through a provider's SMTP server on port 587. Most mobile networks and many home lines block port 25 anyway; see port 25 timeouts.
How this differs from the Gmail PTR bounce
Gmail does the same kind of check but answers with 550-5.7.25, a permanent block, when the PTR is missing or does not point back. That case is covered in Gmail's 550-5.7.25. The mismatch case, where a PTR exists but the names disagree, is explained in more depth in reverse DNS does not match. Fixing one fixes all three.
If you use OquMail
OquMail's sending IP has matching reverse DNS: it points to mail.oqumail.com, and that name points back to the same IP. So mail that really leaves through OquMail should never get this reply. If it does, send the full bounce to OquMail support, because then the receiver's DNS is the likely cause. If the IP in the bounce is not OquMail's, a printer, website or app is delivering mail directly. Set it to mail.oqumail.com, port 587, STARTTLS, with the full mailbox address and its password. Keep the five dashboard records live (ownership TXT, MX, SPF set to v=spf1 mx a:mail.oqumail.com ~all, DKIM and DMARC); the SPF checker shows what is published.
Common questions
What does "Client host rejected: cannot find your hostname" mean?
It means the receiving server could not turn the sending IP into a name that points back to the same IP. The owner of the sending server must add or correct its PTR record and matching A record.
Will my email still be delivered after a 450?
Possibly. A 450 is temporary, so the sending server retries for a while. If the DNS is fixed before it gives up, the message goes through on a later try.
Is it 4.7.1 or 4.7.25?
Both are the same check. Older Postfix servers say 4.7.1 and Postfix 3.0 and later say 4.7.25. The fix does not change.
Can I fix it in my domain registrar's DNS?
Only half of it. The A record lives in your domain's DNS, but the PTR record belongs to whoever owns the IP address, usually your hosting provider.
Want to see how your own domain is set up? Use the free SPF checker: it runs in your browser and stores nothing.