Read the signal
Start with the exact wording of the error and its timestamp in the log. Then narrow down the cause before changing anything.
550 5.7.1 <info@beispiel.de>: Relay access denied
Narrow down possible causes
- The mail client or application sends without SMTP AUTH.
- Mail is submitted on port 25 instead of submission port 587 (or 465) with login.
- The recipient domain is missing from
virtual_mailbox_domains,mydestinationorrelay_domains. - The application server's IP is not in
mynetworks.
Check before changing anything
1.
Show Postfix relay settings
postconf -n | grep -E 'mynetworks|relay_domains|smtpd_relay_restrictions|virtual_mailbox_domains'
2.
Find rejected attempts and client IPs in the log
journalctl -u postfix --since '1 hour ago' | grep 'Relay access denied'
3.
Test authenticated submission on port 587 (prompts for the password)
swaks --to test@example.com --from info@example.com --server mail.example.com --port 587 --tls --auth LOGIN --auth-user info@example.com
4.
Check that the submission ports are listening
ss -ltnp | grep -E ':(25|465|587) '
Fix and test again
- Enable SMTP AUTH in the client and use port 587 with STARTTLS.
- Add your domains to
virtual_mailbox_domainsorrelay_domains, then runpostfix reload. - Set clean relay rules:
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination. - Add fixed internal servers to
mynetworksas single /32 entries – never whole networks.
Then repeat the original action and compare the result with the initial error.
Keep a note for the next ticket
Record the exact error, the check result, the change and the retest. That gives the team a useful starting point next time.
Does 550 5.7.1 always mean relay access denied?
No. 5.7.1 is a generic policy code. Microsoft 365, spam filters and sender restrictions use it too. The text after the code tells you what actually happened.
Full error guide: SMTP 550 5.7.1: relay access denied and policy rejections
Originally published at daniele-michelin.com. More guides, free checks (SPF, TLS, headers) and an error-message lexicon: daniele-michelin.com/en/.
Top comments (0)