Laravel: Expected response code "250" but got code "550", with message "550 5.7.1 Relaying denied"
Laravel connected and authenticated but the SMTP server rejected the message at the RCPT TO / MAIL FROM / DATA step with the code shown.
Expected response code 250 but got code 550Expected response code "250" but got code "550"Expected response code 354 but got code "554"Expected response code 250 but got code 535Swift_TransportException: Expected response code 250 Meaning
The code and message after "but got" are the real error — it is the server's reply. 550 5.7.1 means relay denied or policy, 553 sender not allowed, 554 content or IP blocked, 535 bad login. Read the number, then use that error's page.
Common causes
- Sender address (MAIL_FROM_ADDRESS) not allowed for the account
- Relaying not permitted without authentication
- Recipient invalid (550 5.1.1)
- Domain/IP blocklisted or lacking SPF/DKIM
- Content flagged as spam
⚡ Quick fix
- Read the code in the message and fix that specific problem
- Set
MAIL_FROM_ADDRESSto a verified sender - Add SPF/DKIM and confirm the SMTP credentials
Detailed fix by platform
Laravel
- Log failures:
Mail::send(...)inside try/catch andreport($e); setMAIL_MAILER=logto inspect the generated message
How to diagnose
- Code — What number follows "but got"?
- From — Verified sender?
- Recipient — Valid address?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- 419 Page Expired Laravel: 419 Page Expired (CSRF token mismatch)
- 421 4.7.0 Try again later (rate limited) SMTP: 421 4.7.0 Our system has detected an unusual rate of unsolicited mail originating from your IP address. Mail sent from your IP address has been temporarily rate limited
- 450 4.7.1 Greylisted, please try again later SMTP: 450 4.7.1 <user@example.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/example.com.html
Most viewed in Email / SMTP
- 550 5.7.26 550 5.7.26 This mail has been blocked because the sender is unauthenticated (SPF/DKIM/DMARC)
- SES: Maximum sending rate exceeded Amazon SES: Throttling — Maximum sending rate exceeded (454 Throttling failure)
- DKIM: body hash did not verify DKIM: dkim=fail (body hash did not verify) / signature verification failed
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 4 Nov 2026