5.1.8: The sender's domain is refused

At a glance

The receiving system refused the domain of your sender address. In Microsoft 365 the same code usually means something more serious: your own account has been blocked from sending because it sent spam.

What it means

RFC 3463 §3.2 defines X.1.8 as bad sender's system address. The sender's domain does not exist or cannot accept return mail; for a domain name, the part to the right of the @ is invalid for mail. Receivers check this because bounces and replies need somewhere to go. The basic code that comes with it varies by server.

Common causes

How providers use it

Microsoft 365 returns 5.1.8 Access denied, bad outbound sender when the sending account is blocked for sending too much spam. Microsoft notes that this typically happens because the account was compromised (Exchange Online NDR reference). Here the domain is not the issue at all: the block sits in your own organization, not at the recipient.

How to fix it

If the bounce came from a recipient's server:

  1. Look up your sender domain's MX records with dig MX yourdomain.com and check that the domain is still registered.
  2. Make sure the envelope sender uses a real domain that can receive bounces, not an internal or placeholder one.
  3. If you publish a null MX for the domain, either stop sending from it or replace the null MX with real MX records.

If the bounce came from Microsoft 365 with "bad outbound sender":

  1. Treat the account as compromised. Reset its password, sign it out of all sessions and review its sign-in activity.
  2. Check the mailbox for forwarding or inbox rules its owner did not create.
  3. Find out how the account was taken over, and close that gap before the block is lifted, or it will return.
  4. Ask a Microsoft 365 administrator to remove the sending block, following the steps for 5.1.8 in Microsoft's NDR reference.
  5. If the spam went on for a while, recipients may also refuse your organization's IP addresses; see 5.7.606.

See every bounce code in the dictionary.

Many bounces from addresses that do not exist can be avoided: check an address with our free email checker, or clean a whole list before you send.

How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text.

Updated · Maintained by the email-validation.org team