unable to relay 550.5.7.1 try everything but not solved
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.
Text
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