Forum Discussion
Adding an external mailserver with SPF record (Webhost mailserver) to use with website contact form
So, I found out that using include:mail17.*MyWebhostDomain*.com also works. The mail didn't arrive in my Outlook mailbox, because my webhost's mailserver had a catch all mailadress configured (mail@mydomainname.com) and, as it was ones the only mailserver (before I started with Office 365) decided to put all the testmails in this catch all mailbox.
To solve this I configured bSMTP at my webhost and forward it to MySubscrionName.mail.protection.outlook.com. That seems to work when I configure the SPF. Without the SPF the mail doesn't get delivered in Outlook.
Well, the include clause means "get the SPF record from that domain" and will only work if said domain has SPF published. If you want to add a hostname instead of IP to your record, use the A clause. For example:
a:domain.com
a:domain.com/24
But if it work with include I guess they do publish SPF records on the domain and you should be fine.
- Michiel van den BroekJan 26, 2017Iron Contributor
Well, it doesn't work all the time. I get message email with this text:
[This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing]
And then the mail.
So, I guess I have to do something more to make it always work.