The 501 5.1.8 error means your sending (From/Return-Path) address is invalid or rejected by the receiving server. Learn how to fix this.
5.1.8
| Component | Value | Meaning |
|---|---|---|
| Class | 5 | Permanent failure |
| Subject | 1 | Addressing |
| Detail | 8 | Bad Sender Address |
Per RFC 3463 Enhanced Mail System Status Codes. Class (X) = severity, Subject (Y) = category, Detail (Z) = specific condition.
The receiving server rejected your message because your sender address (the From: or Return-Path: address) is invalid, malformed, or blocked. This is a problem with who you're sending from, not who you're sending to.
Microsoft 365 returns this when the sender domain cannot be found in DNS. Ensure your domain has valid DNS records.
📖 Microsoft 365 / Outlook documentation →These are real bounce message formats you might receive. Paste yours into the Bounce Decoder for instant analysis.
501 5.1.8 Bad sender's system address 501 5.1.8 Domain of sender address does not exist
Paste your full NDR email, SMTP error line, or mail log fragment to get an instant plain-English diagnosis.
Open the Bounce Decoder →