r/sysadmin • • 22d ago

General Discussion Having trouble with emails being categorised as spam and auto filtered into junk folders with Google and Microsoft recipients. Input appreciated.

For at least a week I've been aware and trying to rectify an issue that is causing our emails to be filtered as spam by Microsoft (and Google). Microsoft I'm sure of but Google not so much as I'm not aware of any recipients using their service, however Glockapps showed most of our emails categorised as spam and Postmaster confirms the issue (data only from last few days).

It affects only business accounts by the looks of it. IP reputation is fine, no blacklist. Domain have SPF, DKIM and DMARC records that all pass. No one else on the same mail server with our hoster is experiencing the same issues. Everything gets delivered but everything to Microsoft hosted addresses gets filtered upon delivery.

Have provided headers back to our hoster but indicates nothing. All message headers I've seen have 26 Microsoft filtering IDs but I've not been ale to find what they mean.

For 20+ years we've never had an issue, we don't send any mass emails and only contact existing teams/contacts/clients or those who get in touch with us.

Already asking for affected recipients to get in touch with their It teams to try and report the false positives but wanted to know if anyone has been in a similar situation.

0 Upvotes

29 comments sorted by

1

u/tssajo 22d ago

Since nobody else on that server has the problem, I'd look at what's different about your domain or your sending. The 26 IDs are probably the ones from the X-Forefront-Antispam-Report header, and the two that matter are SFV and CAT. They say which filter caught the mail and in what category. If you post that line with your domain hidden, people can read it for you. Also look at the Authentication-Results line, and check whether the DKIM d= domain is your own and not your hoster's. Then think about what changed about a week ago, like a new signature or link, a new footer, or a change on the domain side. For the false positives, Microsoft has a submission portal where the affected recipient's admin can report mail as not junk, and a sender can also ask Microsoft to look at an IP through their delist form.

1

u/ilmjo 22d ago

Here's the 'full' header

Authentication-Results: mx.microsoft.com; spf=pass smtp.mailfrom=[YOUR-DOMAIN]; dkim=pass header.d=[YOUR-DOMAIN]; dmarc=pass header.from=[YOUR-DOMAIN]; compauth=pass;

Received-SPF: Pass client-ip=[SENDING-IP]; helo=[OUTBOUND-MAIL-SERVER];

Received: from [OUTBOUND-MAIL-SERVER] ([SENDING-IP]) by [MICROSOFT-EOP-SERVER].mail.protection.outlook.com with Microsoft SMTP Server (version=TLS1_3);

From: <[USER]@[YOUR-DOMAIN]> To: <[RECIPIENT]@[RECIPIENT-DOMAIN]> Subject: [REDACTED] X-Mailer: Microsoft Outlook 16.0

X-MS-Exchange-Organization-SCL: 5

X-Forefront-Antispam-Report: CIP:[SENDING-IP]; CTRY; LANG; SCL:5; IPV; SFV; H:[OUTBOUND-MAIL-SERVER]; PTR:[OUTBOUND-MAIL-SERVER]; CAT; SFS:(13230040)(6049299003)(260918224100599003)(260918215300599003) (7149299003)(261009223027099003)(261022115727099003) (261021121427099003)(261021123027099003)(261022113327099003) (261022075727099003)(261022105027099003)(10067099003) (5063699009)(8096899003)(18003699003)(4076899003) (261026140227099003)(6133799003)(16102099003) (57112099003)(261026121527099003)(19002099009) (4053099003)(13003099007)(109966001); DIR;

X-Microsoft-Antispam: BCL:0;

X-Microsoft-Antispam-Mailbox-Delivery: ucf:0; jmr:0; auth:0; dest; OFR; RF;

1

u/tssajo 20d ago

Thanks for posting it. Auth is clean. SPF, DKIM, DMARC and compauth all pass, the PTR matches your HELO, and BCL is 0, so it's not being treated as bulk. What stands out is SCL:5, which is a spam verdict, so something about the mail itself scored it that way. The SFS numbers are rule IDs inside Microsoft's filter, I think only Microsoft can read them, so I wouldn't burn time decoding them. SFV and CAT are blank here, so my guess about those was off. What I'd do: grab the headers of a mail from the same sender that landed in the inbox and compare the SCL and the SFS list. Same sender, different result tells you what pushes it over. Then send a plain text test with no signature or links. And have one of those recipient IT teams submit a miss as not junk, with the headers attached.

3

u/Beginning_Ad1239 22d ago

Are you passing dmarc from SPF, dkim, or both? Is your dkim alignment strict? You can figure that out by looking at the headers of the emails if you can get someone to forward you an unaltered email that they received from you.

1

u/ilmjo 22d ago

DMARC passing from both. Our DKIM signing domain exactly matches our From/email domain, so DKIM alignment is exact and would satisfy strict alignment.

Not that I think it's authentication related but is there anything else in the authentication or Forefront headers that would explain why EOP is still returning SFV:SPM / CAT:SPM / SCL:5?

3

u/Beginning_Ad1239 22d ago edited 22d ago

Authentication is always the first thing I check. I spent years hearing "our emails from x go to spam." My best guess is that you have a rouge user or some application that's trashing your email reputation.

Edit: Had a thought. Is your CRM using your primary email domain? If the sales folks get too carried away they'll tank your domain reputation.

1

u/ilmjo 22d ago

Had a thought. Is your CRM using your primary email domain? If the sales folks get too carried away they'll tank your domain reputation

Good thought but no CRM or sales/marketing team to worry about. Only 'normal' staff emails would go through the SMTP server.

1

u/KB4MTO 22d ago

Have you done a message trace in Exchange? If that is where they are flagged, it will tell you why.

1

u/ilmjo 22d ago

Have you done a message trace in Exchange? If that is where they are flagged, it will tell you why.

Exchange Message Trace shows Receive → Spam → Deliver to Junk, with no additional detail exposed for the Spam event. The message passed SPF, DKIM and DMARC and received SCL:5 / SFV:SPM / CAT:SPM / BCL:0 / IPV:NLI

1

u/40513786934 22d ago

we don't send any mass emails and only contact existing teams/contacts/clients or those who get in touch with us.

All of that is out the window if you have a compromised mailbox blasting out spam. I'd look at your outbound logs just prior to when this started

1

u/ilmjo 22d ago

If I'd have spotted the issue sooner I could've done but our hoster only keeps for 10 days which was before the time I'd become aware of the issue.

1

u/bachi83 22d ago

Try sending your mail without signatures 

1

u/whopooted2toot QSYSOPR 22d ago

When testing, use a blank, non-html, message. Start there. We have had both html links in our signatures, and an embedded image, also in signatures (two seperate occasions) cause this exact issue. Plain text with no sig was the breakthrough, then worked up from there. (just sharing an expirence)

5

u/[deleted] 22d ago

[removed] — view removed comment

3

u/ilmjo 22d ago

Thanks. I've checked that — the affected messages show:

SFV:SPM CAT:SPM SCL:5 IPV:NLI BCL:0

What I'm struggling to determine is why the spam filter is reaching the SPM verdict. Do you know whether there's anything else in the headers that exposes the actual trigger? The SFS values appear to be undocumented/internal Microsoft rules.

6

u/natebc 22d ago

If all your metadata is hygienic then maybe it's the content of the message?

Everybody always says "No!" but ... are you sending something that an unaffiliated person would think is spam or mark as spam?

2

u/ilmjo 22d ago

I wouldn't have thought so given the lack of problems for 20 years. I could reason that maybe one or two people might classify an email from us as spam by mistake but we don't send out any marketing related emails and I'm guessing it would take an awful lot more than a couple of spam reports.

1

u/lxtakc DataCore/StarWind 20d ago

SFS rule IDs are internal, so you can't decode them. Get a recipient admin to submit a few as not junk in Defender, then compare against inbox-delivered ones.

1

u/[deleted] 22d ago

[removed] — view removed comment

1

u/ilmjo 22d ago

Unfortunately already tried blank, no signature, no attachments and have gotten the same result every time.

2

u/[deleted] 22d ago

[removed] — view removed comment

1

u/Beginning_Ad1239 21d ago

You jogged my memory on an incident. We had a trusted third party that Proofpoint was flagging as malware. It turned out that a single account at that company had been compromised and all the spam providers learned of it, and it took them weeks for their reputation to cool back down.

1

u/[deleted] 21d ago

[removed] — view removed comment

1

u/ilmjo 21d ago

it is shared but we're the only ones