554 5.7.1 <jan@example.org>: Relay access denied
A mail server was asked to deliver a message to a domain it isn't responsible for, by someone it doesn't trust. Servers refuse this to avoid becoming an open relay that spammers can abuse. The question is which server said it, and why it didn't trust you.
If you get it when sending from your mail app or a device
Your app, printer, scanner or website is talking to your outgoing mail server without logging in. Check:
- SMTP authentication is switched on, with the right username and password.
- The port is
587(STARTTLS) or465(TLS). Port25is for server-to-server mail, and many servers don't accept logins there. - The server name is your provider's outgoing (SMTP) server, not the incoming one or the recipient's server.
- For Microsoft 365, SMTP AUTH has to be enabled for the mailbox, or you need to use a connector for devices.
If other people get it when writing to you
Their mail reached a server that doesn't consider itself responsible for your domain. Usually your domain's MX records point to the wrong server, for example an old provider after a migration, or the domain hasn't been added as an accepted domain in your new mail service.