CONSOLE
Loading
Diagnose SMTP authentication mismatches, configure Postfix SASL authentication, and route mail through authenticated smart host relays without getting rejected.
The '550 5.7.1 Relay Access Denied' error occurs when the receiving mail server rejects an outgoing email because the sender did not authenticate via SMTP AUTH (SASL), or the server is not configured as an open relay for that IP address.
In standard SMTP (RFC 5321), a mail server acts as a relay when it accepts an email from an external client or application and forwards it to an external third-party mailbox (such as Gmail, Yahoo, or Outlook).
To prevent malicious spammers from hijacking servers to broadcast unauthenticated junk, modern mail transfer agents (MTAs) disable open relaying by default. When an application attempts to inject an email without valid credentials or from an unwhitelisted IP, the server responds with:
550 5.7.1 <recipient@example.com>: Relay access denied
Your application (WordPress, Laravel, Node.js) sent the email over port 25 without sending AUTH LOGIN or AUTH PLAIN credentials.
Your server's outgoing IP address is not listed in your mail server's mynetworks configuration directive.
Your cloud host (AWS, DigitalOcean, Linode) intercepts outbound port 25 traffic and routes it to an unauthenticated gateway.
If your Linux server runs Postfix as a local MTA and needs to forward all outgoing mail through an authenticated smart host relay, follow this 3-step configuration:
Step 1: Edit /etc/postfix/main.cf
# Set smart host relay with explicit port 587
relayhost = [mail.photonrelay.com]:587
# Enable SASL authentication
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
# Enforce TLS encryption
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
Step 2: Create Credentials File /etc/postfix/sasl_passwd
[mail.photonrelay.com]:587 YOUR_SMTP_USERNAME:YOUR_SMTP_PASSWORD
Step 3: Hash Passwords, Secure Permissions & Restart
sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
sudo systemctl restart postfix
Test that your server can establish an authenticated TLS handshake on port 587:
openssl s_client -starttls smtp -connect mail.photonrelay.com:587 -crlf
# Once connected, verify available auth mechanisms:
EHLO yourdomain.com
# Server response will include:
250-AUTH PLAIN LOGIN
250 STARTTLS
Connect your applications to Photon Console's Anycast edge relay. Sub-second delivery, 5,000 free monthly dispatches, and instant credential provisioning.
Get Free Relay Credentials in 2 Mins →Photon Console provides high-performance, authenticated SMTP relay clusters specifically engineered to replace fragile local sendmail configurations:
Trademark Notice & Nominative Fair Use: All third-party trademarks, logos, and service marks (SendGrid®, Mailgun®, Amazon SES®, Postmark®, Resend®, Brevo®, SMTP2Go®, SparkPost®) are property of their respective owners and used under 15 U.S.C. § 1115(b)(4).
Photon Console is independent and not affiliated with or endorsed by these providers. Pricing and plan details compiled from public sources as of November 2026. Read full legal disclaimer →