I have a SP 2013 server farm in Azure. It has a WFE and App Server.
WFE is exposed, whereas App server is not.
We are using hMailServer instead of SMTP for sending emails.
- We have installed hMailServer in our WFE.
When we try to send email from our application or even through PowerShell, it is going to the Spam folder in GMail. But if I install hMailServer in App server(not exposed), then emails from PowerShell are going to Inbox properly.
But I cannot do it from App Server, since my application is deployed in WFE and not in App server.
I googled a lot and read about some SPF settings in DNS. Though, I tried it, it is of no help. Also, my SMTP relayer is blank in hMailServer setting, but still, no luck.
Can anyone please help?