I have a VM running a public website but the VM has a private internal IP and no public IP. I have an Application Gateway, with a public IP, that is the entry point for my domain being hosted on the private-IP VM.
When I send emails from my VM/s command line, I keep getting the following error:
554 Connection Denied - Reverse Lookup Failure
I reviewed the docs page that says that a reverse DNS PTR record cannot be added to an Application Gateway.
What is the workaround? Do I assign a public IP to my VM and add an MX record for that IP or how do I fix this?