unable to relay 550.5.7.1 try everything but not solved

Ak_kat 1 Reputation point

i am trying to allow an external party to send emails but they are getting an error unable to relay 550.5.7.1 invalid address.

javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
i have created SMTP relay with below setup and added their IP in remote network.
also I have added their IP in SPF record.
i am able to receive email to internal mailbox but external domains i.e. gmail, hotmail or other domain are not allowed and getting unable to relay 550.5.7.1
I have added this command as well but no success.
Get-ReceiveConnector "Relay-test" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"

if the above setup is correct then let me know how to troubleshoot. i mean how to check exchange logs.

even if I choose only anonymous it won't work

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,335 questions
{count} votes