I am using Azure Server, here port 25 is blocked for spam.
After that I tried to use SMTP relay for mail server, I used Mailgun and Sendgrid but none of it worked.

I getting the same error. as above.
This is how the code looks like
#BEGIN_POSTFIX_RELAY
relayhost = [smtp.mailgun.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:postmaster@sandboxdbfxxxxxxxxxxxxxx9a119f6026cb4d4ea.mailgun.org:145ccxxxxxxxx6864bb47f4e12bbcb5268-bdb2c8b4-700cb831
smtp_sasl_security_options = noanonymous
#END_POSTFIX_RELAY
Please help me to resolve the issue