We help IT Professionals succeed at work.

Email sending problem

Maggi Soffa
Maggi Soffa asked
I am sending email from my server but now I get this error when I send to certain doman:

The following message to bixx@simnet.is was undeliverable.

The reason for the problem:
The address 185.152.x.x is not allowed to send messages for the address service@xxdot.is

Possible reasons for this problem:
- Wrongly configured SPF records on the sending domain.
- The email is being forwarded to another email address.

Please contact your email provider.
Those are my DNS records

MX            @      xxdot-is.mail.protection.outlook.com      
TXT      -      @      v=spf1 include:spf.protection.outlook.com -all      
CNAME      -      autodiscover      autodiscover.outlook.com
Watch Question

David FavorFractional CTO
Distinguished Expert 2019

This behavior is correct.

Whatever "my server" might mean, there's no SPF entry for "my server" so any mail sent by "my server" isn't authorized to send mail on behalf of your domain.

You must add the ip4 or ip6 address of "my server" to your SPF record to authorize this behavior as correct.
So basically, just adjust your SPF record to this:

v=spf1 include:spf.protection.outlook.com ip4:185.152.x.x -all
David FavorFractional CTO
Distinguished Expert 2019

SPF is only the first step in a long process to setup/warmup an IP.

https://www.experts-exchange.com/questions/29165628/Sending-Email-by-getting-email-address-from-database.html provides a bare minimum setup, to get to a point where you can start your warmup process.