SPF lists hosts that are allowed to send email from the domain. The public DNS of your domain should include all the servers and services you wish to use for sending email. For general information, please read How Office 365 uses Sender Policy Framework (SPF) to prevent spoofing
If you use Messagelab for outgoing email, you should have it listed in SPF on public DNS, i.e. include:spf.messsagelab.com
. If all mail from Office 365 are supposed to go through Messagelab first, you don't need to have include:spf.protection.outlook.com
.
In both cases it should be safe to have them both listed:
v=spf1 include:spf.messsagelab.com include:spf.protection.outlook.com –all
Please notice that the -all
will cause SPF hard failure meaning it the messages can get rejected instead of just marked as spam, like SOFTFAIL
would do, if you had ~all
there instead.
If you only use Messagelab for incoming mail, you need to have spf.protection.outlook.com
included. Then, you need to disable SPF checks on Office 365 (as it is already done on Messagelab)
- Office 365 Admin > Exchange admin center > protection > spam filter
- Edit Default > advanced optioins > Mark as Spam > SPF record: hard fail: Off
and/or whitelist Messagelab (as it will not be listed as permitted sender for the domain you are checking):
- Office 365 Admin > Exchange admin center > protection > connection filter
- Edit Default > connection filtering > IP Allow list