// how to fix
"450 4.1.8 Sender address rejected: Domain not found" / "553 5.1.8 Domain of sender address does not exist": fix
The receiver could not find your sender domain in DNS. Usually a typo, a local domain like .local, or a domain with no A or MX record.
What it means
The receiving server looked up the domain of your sender address and could not find it in DNS. It refuses mail from a domain that does not seem to exist, because it could never send a reply or a bounce to it. The message usually looks like one of these:
450 4.1.8 <user@yourdomain.com>: Sender address rejected: Domain not found 553 5.1.8 <user@yourdomain.com>... Domain of sender address user@yourdomain.com does not exist
The first one comes from Postfix. The 450 version is temporary, so your server will retry, but it will keep failing until the domain can be found. The 553 version is permanent.
The sender address checked here is the envelope sender, also called Return-Path or MAIL FROM. It is not always the "From" address people see. Apps and servers often set it automatically, for example www-data@server1.local.
Why it happens
- A local or internal name. The envelope sender uses a domain that only exists inside your network, such as
.local,.lan,.internalor the bare server name (root@localhost). - A typo in the sender address, like
yourdomian.com. - The domain has no A and no MX record. Some receivers require at least one of them for the sender domain.
- The domain expired or its DNS hosting was removed.
- A subdomain without records, such as
bounce.yourdomain.comused by a tool, that nobody created in DNS. - DNS problems: your domain's name servers do not answer, or answer badly. In that case the temporary
450code is common.
How to check
- Read the bounce. The exact address in brackets is the one checked. Look at its domain carefully.
- Run a Delivmail test. Send an email from the same app or server to the unique address on the home page (
/). The report shows the envelope sender (Return-Path) and the From address, so you can see which domain your app really uses. - Scan the domain at
/domain-scannerto see its MX records and whether it answers at all. - Check the domain registration on
/whoisto make sure it has not expired.
How to fix it
If the domain is local or wrong
- Set a real sender address on a domain you own, for example
noreply@yourdomain.com. - In Postfix, set
myoriginandmyhostnameto real names (for exampleyourdomain.comandmail.yourdomain.com), or rewrite local addresses withsender_canonical_maps. - In PHP or a website, set the envelope sender explicitly (the
-foption ofmail(), or the "Return-Path" or "Sender" field of your mail library or plugin). - In apps and devices, look for a "sender address" or "from address" setting and use a real address.
If the domain is real
- Make sure it has an MX record (where replies go) and, if possible, an A record.
- If a tool uses a custom bounce subdomain, create the records it asks for (often a CNAME).
- Renew the domain if it has expired, and check that its name servers answer.
Using a real domain also lets you set SPF, DKIM and DMARC for it, which you will need anyway for good delivery.
Check that it is fixed
After any DNS change, wait a little for it to spread (usually under an hour). Send a new Delivmail test from the same app: the Return-Path should now show your real domain, and SPF should be checked against it. Then resend the email that bounced, or let your server retry the queued messages.
Check that it is fixed
DNS changes can take from a few minutes to a few hours. Then send a new test email or scan your domain again.
Related guides
- No SPF record on your domainYour domain does not say which servers may send email for it. Add one TXT record and receivers can tell your real emails from fakes.
- SPF error: too many DNS lookups (permerror)SPF allows at most 10 DNS lookups. Above that, the whole record breaks and receivers treat it as invalid. Here is how to slim it down.
- Several SPF records on one domainA domain must have only one SPF record. With two or more, SPF breaks for every email. Merge them into a single line.
- SPF fails: the sending server is not authorizedYour domain has an SPF record, but the server that sent your email is not in it. Find which service sent the email and add it.
- No DKIM signature on your emailsDKIM adds a digital signature that proves an email really comes from your domain. Turn it on in your email provider and publish its key in DNS.