r/sysadmin • u/FST-LANE Jack of All Trades • Jan 01 '22
Question - Solved Exchange 2019 Anti-Malware - Bad Update?
EDIT: I can’t change the title, but this appears to be more serious than a bad update. Read on....
——————————————————
Just wondering if any other Exchange admins had their new year’s celebration interrupted due to the “Microsoft Filtering Management Service” being stopped and reports of issues with mail flow?
In the application event logs, I see a bunch of errors from FIPFS service which say: Cannot convert “220101001” to long
If I look back further in the logs, it appears like it all started happening when the “MS Filtering Engine Update” process received the “220101001” update version just over an hour ago at 7:57pm EST.
EDIT: I’ve tried forcing it to check for another update, but it returned “MS Filtering Engine Update process has not detected any new scan engine updates”. ... I’ve temporarily disabled anti-malware scanning, to restore mail flow for now.
TL DR; Microsoft released a bad update for Exchange 2016 and 2019. Disabling OR bypassing anti-malware filtering will restore mail flow in the interim
UPDATE: according to @ceno666 the issue also seems to occur with the 220101002 update version as well. Could be related to, what I’m dubbing, the “Y2K22” bug. Refer to the comment from JulianSiebert about the “signed long” here: https://techcommunity.microsoft.com/t5/exchange-team-blog/december-2021-exchange-server-cumulative-updates-postponed/bc-p/3049189/highlight/true#M31885 The “long” type allows for values up to 2,147,483,647. It appears that Microsoft uses the first two numbers of the update version to denote the year of the update. So when the year was 2021, the first two numbers was “21”, and everything was fine. Now that it’s 2022 (GMT), the update version, converted to a “long” would be 2,201,01,001 - - which is above the maximum value of the “long” data type. @Microsoft: If you change it to an ‘unsigned long’, then the max value is 4,294,967,295 and we’ll be able to sleep easy until the year 2043!
UPDATE: Microsoft has confirmed disabling the malware filtering is the correct course of action for now (workaround to restore mail flow). While new signatures and engine updates have been released, they don’t seem to fix the issue. We’ll continue to wait for an official response from Microsoft. At least we have a third-party filtering/scanning solution in front of Exchange.
UPDATE: If you still have mail flow delays after disabling the malware filter, check your transport rules; you might have a rule that is trying to check attachments; reference this comment for information on finding the correct transport rule: https://www.reddit.com/r/sysadmin/comments/rt91z6/exchange_2019_antimalware_bad_update/hqtt5ib/
UPDATE: Reddit user u/MarkDePalma created a custom script to roll back to 2021 and reportedly allows you to re-enable all malware filtering while we wait for a patch from Microsoft. PROCEED AT YOUR OWN RISK, ‘John Titor’, haha. https://blog.markdepalma.com/?p=810
UPDATE, 01/01 14:39 EST (19:39 GMT): Microsoft has released a statement here: https://techcommunity.microsoft.com/t5/exchange-team-blog/email-stuck-in-transport-queues/ba-p/3049447
UPDATE, 01/02 01:45 EST (06:45 GMT): Microsoft has released a fix for the “Y2K22 Exchange Bug” which requires action to be taken on each Exchange server in your environment. Some system administrators report this fix can take around 30 minutes to run, which could increase depending on how many people are trying to simultaneously download the update from the Microsoft servers. Interestingly, this fix includes a change to the format of the problematic update version number; the version number now starts with “21” again, to stay within the limits of the ‘long’ data type, for example: “2112330001”. So, Happy December 33, 2021! 😉 https://techcommunity.microsoft.com/t5/exchange-team-blog/email-stuck-in-transport-queues/ba-p/3049447
EDIT: If after applying the fix mentioned above, your queues may not clear and you may see a new FIPFS error with Event ID 2203, A FIP-FS Scan process returned error 0x84004003 ... Msg: Scanning Process caught exception ... Unknown error 2214608899. Failed to meet engine bias criteria (Available) for filter type (Malware). To fix this issue, restart the Microsoft Filtering Management Service: Restart-Service FMS -Force
63
u/ceno666 Jan 01 '22
Just got the same problem here, are we sure it is a bad update or do we have a Year2k22 Bug situation?
The FIP-FS "Microsoft" Scan Engine failed to load. PID: 7948, Error Code: 0x80004005. Error Description: Can't convert "2201010002" to long.
14
u/FST-LANE Jack of All Trades Jan 01 '22
Well, you just confirmed that the newer 220202002 update is also broken. Maybe you’re right; it’s a Y2k22 bug.
32
u/ceno666 Jan 01 '22
81
u/FST-LANE Jack of All Trades Jan 01 '22 edited Jan 01 '22
TL DR; “a signed long is not big enough for a 6 digit date + 4 digits time or serial number”.
So for those of us who are too young to remember the Y2K scare, welcome to “Y2K22”!
The “long” data type allows for values up to 2,147,483,647. It appears that Microsoft uses the first two numbers of the update version to denote the year of the update. So when the year was 2021, the first two numbers were “21”, and everything was fine. Now that it’s 2022 (GMT), the update version, converted to a “long” would be 2,201,01,001 - - which is above the maximum value of the “long” data type. @Microsoft: If you change it to an ‘unsigned long’, then the max value is 4,294,967,295 and we’ll be able to sleep easy until the year 2043!
33
Jan 01 '22
to detonate the year of the update
The typo is so accurate for this 🤣
12
u/FST-LANE Jack of All Trades Jan 01 '22
Lmfao. Fixed. I think it was all those fireworks my neighbors were setting off!
→ More replies (4)20
u/ceno666 Jan 01 '22
lol yeah i can remember, seems like it took 22 more years to get me called out of sleep for this shit
0
Jan 01 '22
[deleted]
9
u/FST-LANE Jack of All Trades Jan 01 '22
Probably automated. The version is based on the date in GMT.
0
Jan 01 '22
[deleted]
6
u/FST-LANE Jack of All Trades Jan 01 '22
Probably not, since they’re just “signature” updates and not software updates; probably based on an automated “A.I.” that is constantly tweaking the signatures based on malware it sees in the wild. And it’s not even anything within the payload of the update that’s problematic in this case; it’s simply the version number on the update. Lol.
→ More replies (1)
75
Jan 01 '22
Yep. All email stopped processing on my on prem 2016 at 645pm. I spent like 40 mins rebooting and stressing out. Thanks for your post! FML. lol
49
u/FST-LANE Jack of All Trades Jan 01 '22
Leave it to big corporations like Microsoft to screw us at the most inconvenient time! Happy New Year! 🥳 🙄
→ More replies (1)
19
u/bugalou Infrastructure Architect Jan 01 '22
This crap just brought down all of our alerting in the middle of new years eve. I am in the hospitality/entertainment industry so pretty much the worse time ever.
21
u/FST-LANE Jack of All Trades Jan 01 '22
I was also a bit confused that my monitoring system was calling my phone when I hadn’t seen any email alerts (it escalates to phone call if I don’t acknowledge the alerts that comes through via email). But that’s the downside of email alerts; if ANYTHING that the mail server relies on goes down, it takes email alerts down with it.
My monitoring system calls a simple PowerShell script that I wrote which interacts with the Twilio API to call my cell phone and do some text-to-speech with the alert. On my cell phone, I set that contact to bypass “do not disturb” mode and a custom alarm ringtone, so even when I’m hibernating, it will wake me / give me a heart attack.
→ More replies (1)5
u/anonymous_commentor Jan 01 '22
Check out Mailive. External, you set up a forwarding rule and it watches round trip times. Completely external.
4
u/FST-LANE Jack of All Trades Jan 01 '22 edited Jan 01 '22
MailflowMonitoring.com and Tools.HornetSecurity.com look promising too; and they’re free.
→ More replies (1)6
u/Bleakbrux Jan 01 '22 edited Jan 01 '22
Yeah my alerting too. We are office365 Exchange online apart from on premises alerts.
I didn't notice until like 4pm that there had been zero alerts from anything.
Only noticed as Veeam backup notifications didn't hit the mailbox and Firewall port scan Alerts were non existent which never happens.
Thought it was Just blissfully quiet. Turns out There was a Microsoft induced shit storm going down. Should of known better.
Thank god for exchange online and mimecast. It's nice to know these days that an exchange VM going pop only really affects IT.
I didn't get the alert to say the alerting had gone down, clearly.
12
Jan 01 '22
Serious question though. Why are you guys feeling so comfortable with disabling your anti-malware software. I'm going through the same thing and thankfully getting by with, "Waiting on an official fix from Microsoft". Not sure how long this will last without hearing from them but some random articles suggest Cyber attack and others like this thread suggest bad updates. I see everyone bypassing anti-malware and I'm still hesitant to even give that a whirl in an abundance of caution. Anyone else else on the same boat and can counter with a more concrete response besides what OP is saying. I do believe it's on the right track but why is disabling the anti-malware the first thing that comes to mind as a good workaround? Thanks!
18
u/FST-LANE Jack of All Trades Jan 01 '22
Turns out it’s not actually a bad update. It’s a bug related to the maximum value of a signed integer. I explained all that in the original post near the bottom.
Personally, I am not concerned with turning off the built-in anti malware component, because we have a third-party filtering solution in front of exchange which catches anything bad.
6
Jan 01 '22
Thanks for creating this post! You've saved a lot of New Year hangover headaches! Agreed on the third party filtering that I have as a first layer of filtering defense. I feel more comfortable knowing this.
10
u/elint Jan 01 '22
Why are you guys feeling so comfortable with disabling your anti-malware software.
Because it's supplemental and hardly necessary. I've got a spam filter sitting in front of my Exchange server, filtering all inbound/outbound mail. Honestly, it catches most malware before it ever gets to Exchange. Occasionally, when something slips through, more often than not it also slips through Exchange's malware scanner, and fortunately, my user training has been sufficient to keep users from clicking sketchy things. I'd be a lot more afraid of disabling it if it was my only protection, but then you've likely got other problems.
→ More replies (2)6
u/nobody554 Sr. Sysadmin Jan 01 '22
In our case, we have other solutions in place that help scan for malware and such (external spam/malware filter). Microsoft's scanner would ideally never even see any bad mail because our first line of defense caught it all.
That said, if you want mail to flow before Microsoft fixes their blunder, this is where you outweigh the risks of disabling one control vs keeping any other controls you have in place to protect your environment.
→ More replies (1)4
u/its_the_revolution IT Director Jan 01 '22
We use other products from third party vendors like FireEye that focus on sanitizing mail before it arrives to Exchange. I’m confident this filter wouldn’t find much of anything after it goes through those appliances we use.
9
u/ARDiver86 Jan 01 '22
Does this affect O365 or just conveniently on-prem instances?
12
u/FST-LANE Jack of All Trades Jan 01 '22
So far, O365 seems to be fine for my tenants.
But perhaps O365 has a delayed update mechanism or something. I wouldn’t put it past Microsoft to push updates to on-prem Exchange first before they push the same updates to the O365 infrastructure.
7
u/innovationcynic Jan 04 '22
I wonder if someone could calculate the total cost in terms of hours spent across all companies and the cost per hour of that labor for fixing this.
Not that Microsoft would ever pay it, of course, but this would be interesting to know.
3
u/FST-LANE Jack of All Trades Jan 04 '22
With the sheer amount of activity this post on Reddit received, it’s just a drop in the ocean as to how many system administrators were actually inconvenienced by this. In my circles alone, I’m hearing from folks who are asking me if I heard about this; and when I asked if they saw the post in r/sysadmin they said they weren’t aware of that subreddit (or something said they didn’t know what a Reddit even was, lol).
2
u/FST-LANE Jack of All Trades Jan 04 '22
A fairly easy metric to calculate by a Microsoft. Simply look at the logs to see how many servers downloaded the “220101xxxx” definition file and multiply on the assumption that the average time spent (per server) doing triage, workaround, and remediation is 4 hours....
3
u/handlebartender Linux Admin Jan 01 '22
I've got nothing of value to add here. Just amazed.
Random: although this is shite for users, I imagine there might be a few people over at MS who went from "enjoying the New Year" to "all hands on deck".
4
3
u/rob-entre Jan 01 '22
The article states that 2013 is affected, but the three clients I have with Exchange 2013 were not affected. They could process mail normally.
For what it’s worth, I don’t think the malware filter has done much of anything on my Exchange deployments, as a standard practice is to put a good filter in front of Exchange. While nice to have the additional scanners on Exchange, you should never depend on them alone.
→ More replies (2)1
u/FST-LANE Jack of All Trades Jan 01 '22
I’ve seen some people say it affects 2013. I’ll update this post to clarify 2013 is possibly affected. Thanks.
248
u/runningntwrkgeek Jan 01 '22
Thanks /r/sysadmin! Because of this, I checked my onprem 2019 and discovered we are impacted by this.
I'm now working on it before I get phone calls.
121
u/EPHEBOX Jan 01 '22
Once you've finished testing go ahead and send an "outage update" email to everyone. Potentially nobody noticed but it's free PR for the IT department.
→ More replies (2)67
u/runningntwrkgeek Jan 01 '22
I sent one out at 12:30 am to the entire company. Started with a request that coworkers be extra cautious due to one layer of security being disabled, followed with a tldr, then a more detailed explanation.
Sometimes it's nice to let management know that just because things are working, it doesn't mean I'm not doing anything
0
145
u/brianmarcotte Jan 01 '22
Here’s what I did:
Check queues
Get-Queue
Set filter to bypass
Get-ExchangeServer | % {Set-MalwareFilteringServer -BypassFiltering $true -Identity $_.Name}
Restart Transport service
$ExchangeServers = Get-ExchangeServer | Select -ExpandProperty Name
$ExchangeServers | % {Get-Service -ComputerName $_ -ServiceName MSExchangeTransport | Restart-Service -Force}
If ForEach takes too long, then just manually restart the service in services.msc
Check queues
Get-Queue
Queues should start to process messages
I'll check the malware filter upon my return to see if MS has addressed the issue with an update
Get-ExchangeServer | Get-Queue
To check queues on all transport servers.
Just quick and dirty, but does the job for an urgent issue on New Year’s Eve. Our servers are still behind a third-party mail filter, so I’m ok leaving this MS filter off until they get their shit together.
18
u/killerpm /dev/null - No Escape Jan 01 '22
Thanks! This saved me on a hungover new years day. Sigh.. haha
7
u/DeptOfOne Sysadmin Jan 01 '22
Thank you my friend. I have been working on this for the past 3 hours. Did I mention I'm on Vacation and got called in for this? I owe you a drink my friend.
6
u/guynamedjosh92 Jan 01 '22
Thank you! We tried this, but for some reason we have over 216k messages stuck in the queues of our 6 servers in the "Ready" status... Waiting on a Microsoft engineer to get on the phone with us to see why our queues aren't clearing fast enough (if it weren't for us receiving emails slowly, we'd say it's not fixed at all).
10
u/tourneytalk24 Jan 01 '22
See if you have any mail flow rules that check attachments. If you do, disable them and see if that clears it.
→ More replies (3)→ More replies (5)3
u/pauljdavis Jan 01 '22
Great notes. That's an awesome comment - thanks for helping the community that way! Happy New Year!
2
31
u/hack819 Jan 01 '22
I should have checked here before spending the last hour screwing with exchange. Thanks for the heads up.
→ More replies (1)
49
u/dickielaw88 Jan 01 '22
Our 2016 server is affected also. Damn Microsoft. Having this happen on new years eve? First Betty White, and now this. Hoping for a better 2022!
48
u/HJForsythe Jan 01 '22 edited Jan 01 '22
It's good that they just raised licensing pricing 10% again. Maybe they can hire some people that aren't fucking idiots with the extra money. I don't see a single mention of this anywhere official on Microsoft's end. Did they seriously push out this update and then leave for the weekend? What is happening at that company? I can't really put into words how hopeless it feels to be someone responsible for running this stuff.
→ More replies (3)18
u/disclosure5 Jan 01 '22
I don't see a single mention of this anywhere official on Microsoft's end.
I definitely remember these sort of things when people tell me they want to use products like this so they can get stellar MS support. I can near guarantee if I logged paid support case this morning they would have emailed and asked for logs and then be weeks away from responding again.
21
u/xirsteon Jan 01 '22
Kindly do the needful, run the Healthchecker.ps1 script, send us the report and REVERT back.
→ More replies (1)9
u/172pilotsteve Jan 01 '22
We have premier support and opened a SEV-A at about 04:00 GMT.. They did confirm that it was a systemic problem. We were able to figure out the workaround on our own, but after 2 hours they did provide the same recommendation. I still have the ticket open with them but haven't received another update from them.. I'm expecting a call in the next hour if they follow through with what they told me.
18
u/T101M850 Director of IT Jan 01 '22
Popped some champagne and migrated from the desk to the couch to watch Miley and Pete with the wife...Cue slack exploding my phone with 800 messages.
Finservice company, so year end is kind of a big deal.
15
u/pingsandchickenwings IT Manager Jan 01 '22
Amazing you saved my new years, friend. My appreciation.
15
u/SithLordDooku Jan 01 '22
Update: My submission queue didn't clear because I had a transport rule that was still using the Filtering services. This is after I bypassed filtering and disabled it. I needed to disable the transport rule in order to get the email flowing. The event ID you are looking for is 4010.
Transport engine failed to evaluate condition due to Filtering Service error. The rule is configured to ignore errors. Details: 'Organization: '' Message ID '<2[email protected]>' Rule ID 'cd3d85a6-0c77-4d49-988b-88928b8a73aa' Predicate '' Action ''. FilteringServiceFailureException Error: Microsoft.Exchange.MessagingPolicies.Rules.FilteringServiceFailureException: FIPS text extraction failed with error: 'Exception of type 'Microsoft.Filtering.ScanAbortedException' was thrown.'. See inner exception for details ---> Microsoft.Filtering.ScanAbortedException: Exception of type 'Microsoft.Filtering.ScanAbortedException' was thrown.
Get-transportrule -identify <Rule ID>
disable the transport rule.
→ More replies (2)3
Jan 01 '22
Thanks for this. This was necessary in our environment as well.
I ended up disabling all of the rules for now (mostly audit stuff that is on by default).
12
23
u/reddi-tom Jan 01 '22 edited Jan 01 '22
After troubleshooting over 1.5 hours, opened Reddit and of course you guys have a workaround. Gotta love Reddit r/sysadmin 🥰
GMT+1 BTW, mailflow stopped around 2AM
→ More replies (1)3
u/hakan_loob44 I do computery type stuff Jan 01 '22
6am here. Noticed that I didn't have any email from onprem since last night. Figured that wasn't right. Spent 20min poking around then I figured that this had to be something MS fucked up and didn't post yet. That's when I came right to r/sysadmin. Reddit saves the day again.
11
u/MarkDePalma Jan 01 '22
Got an email flow alert, spent 5 min looking into it and saw the same. Disabling the engine like the others stated (either option) works.
5
u/pssssn Jan 01 '22
What are you using for this btw? I have a solution, but they don't have the option to repeat alerts, which is annoying.
→ More replies (1)8
u/MarkDePalma Jan 01 '22
MX Toolbox integrates into our primary monitoring solution (LogicMonitor). We do external round trip time testing there and then have additional monitors on the transport queues and other things.
→ More replies (4)
10
u/ADSWNJ Jan 01 '22 edited Jan 02 '22
Latest rumor I heard (just as a customer)...
"Y2K22" bug confirmed, as discussed in this thread.
Hotfix to be released asap to strip out the offending 2022-serial number sig files.
Temp workaround is to add a 13th month to 2021 for the signatures - i.e. the next sig after 211231nnnn will be 211301nnnn.
So welcome to the 13th month of 2021!
Edit:
Looks like they preferred to go with the 33rd day of December - i.e. 2112330001. Interesting ... only 2 months to fix it if you do this, i.e. before 211299nnnn. Unless they choose to iterate the nnnn in a different manner.
→ More replies (1)8
9
u/Forgotmyaccount1979 Jan 01 '22
Oh man, I thought I was going crazy there for a minute.
So glad I popped onto Reddit.
9
u/CompetitionOk1582 Jan 01 '22
Why didn’t this affect all on premise customers?
→ More replies (1)7
u/jmch783 Jan 01 '22
I think the malware filter server update URLs are different for each part of the world. So those exchange servers “ahead” of time were impacted first and then once aware of the issue, MSFT took down the update URLs for those regions that hadn’t been updated yet? That appears to have happened to my environment - servers in EU impacted but US based servers not impacted (yet anyway).
→ More replies (3)
9
u/WaitHonest4926 Jan 01 '22 edited Jan 01 '22
Since a couple of minutes Microsoft released Engine 1.1.1880.4 and Sig. 1.355.1224.0 which is working like a charm.
MS Filtering Engine Update process has successfully committed and handed off updates for MicrosoftLast Checked:2022-01-01T08:30:23ZLast Updated:2022-01-01T08:30:39ZEngine Version:1.1.18800.4Signature Version:"1.355.1224.0"Update Version:2201010004Last Definition Update:?2022?-?01?-?01T01:03:32.000ZUpdate Path:http://amupdatedl.microsoft.com/server/amupdate
Cheers and happy new year
Chris
→ More replies (18)3
u/xrtnn Jan 01 '22
MS Filtering Engine
update isn't resolving for me
still getting
The FIP-FS "Microsoft" Scan Engine failed to load. PID: 15996, Error Code: 0x80004005. Error Description: Can't convert "2201010003" to long.
→ More replies (1)
8
u/absoludicrous Jan 01 '22
I saw the entries in Event Viewer and figured this couldn’t have affected only us. Disabling the filter helped get mail flowing again. Thank you all for this thread.
Anyone have any links from Microsoft? Maybe next year?
7
u/briskik Jan 01 '22
You guys are the best. Still took me 2 hours worth of troubleshooting to realize to come here
7
u/appar1tions Jan 02 '22 edited Jan 02 '22
I'm getting:
C:\Program Files\Microsoft\Exchange Server\V15\Scripts\Update-MalwareFilteringServer.ps1 : Error starting the anti-malware engine update.
Anyone else having this issue?
Edit: I get this using the script AND the manual method.
→ More replies (4)
6
u/Impossible_Rush_2722 Jan 01 '22
Dude, love you right now. Though I called my sysadmin to help us do this for a few servers, woke him up, he might hate you…. But I love you!
6
u/NeverEv3rGiveUp Windows Admin Jan 01 '22
Just received a call from MS as a response for a seberity “A” case. They confirmed this approach as a good workaround and are working on the fix.
6
u/172pilotsteve Jan 01 '22
FYI - Somewhere in these comments was someone having problems with mail delays even after disabling the malware filter as everyone is doing. I was having the same problem, with mail delays up to 45 minutes with thousands of messages in queue even while they were [slowly] flowing.
I can report that after disabling (unchecking) my transport rules under the mail flow tab, my mail is flowing fast again. Hopefully this will help someone else who may also have transport rules.
→ More replies (2)3
u/torbar203 whatever Jan 01 '22
https://www.reddit.com/r/sysadmin/comments/rt91z6/exchange_2019_antimalware_bad_update/hqtt5ib/
More info on how to find the correct transport rule
11
u/Prancer_Truckstick Sr. Systems Engineer Jan 01 '22
Jesus Christ, losing my mind around 9 PM trying to figure out why our queues weren't clearing... Disabling malware filtering did the trick for now.
8
u/MarkDePalma Jan 01 '22
The real answer is to rollback to the previous engine version and disable updates. That is what I am looking into. Transport rules can still be affected by this issue depending on if the rules need to invoke FIPS.
6
u/Prancer_Truckstick Sr. Systems Engineer Jan 01 '22
That's a good point, keep oneself protected somewhat until a correctly formed definition becomes available. If you do find a way to roll back the definitions and disable updates, let me know, I'd appreciate it.
→ More replies (2)
11
u/PublicEntertainer Jan 01 '22
u/FST-LANE Thank you so much for posting this. You saved me from working most of the night!!
5
u/happiAdmin Jan 01 '22
Tnx guys, command and Transport service restart worked for me as well. Sigh.
5
u/rswwalker Jan 01 '22
That’s just fabulously bad programming using a signed variable to store unsigned data. Did they have interns writing code for Exchange server?
3
u/elint Jan 01 '22
That’s just fabulously bad programming using a signed variable to store unsigned data.
Personally, I don't think a version string like this should be stored as a signed/unsigned variable at all. It's a concatenation of several numbers and doesn't really require any sort of math. Store it as a string.
→ More replies (1)
5
u/Justicefruitpies Jan 01 '22
I love you all! Seriously, whoever jumped on this saved a day with my family.
5
u/freemantech757 Jan 01 '22
Really saved myself and my team a huge headache. Many thanks for bringing this light and to the entire reddit community for coming together to work through it when many of us have yet to hear a word from Microsoft.
If I could give all the awards I would!
5
u/B5565 Jan 01 '22
I was able to get my team on this and mail flow back up before midnight. Overall, we got it going before anyone actually noticed.
Thanks r/Sysadmin !
5
u/marek1712 Netadmin Jan 02 '22
the version number now starts with “21” again, to stay within the limits of the ‘long’ data type, for example: “2112330001”. So, Happy December 33, 2021! 😉
This is so dumb my head hurts ;) But I guess they didn't want to make drastic changes during the weekend. Just checked my buddy's Exchange. Thankfully not affected since he uses 3rd party antimalware.
11
4
u/justingscu Jan 01 '22
Yep just ruined my night almost :) I had to bypass malware engine and stop it’s service and restart transport service to get email to flow (all 3 servers had the same error!!)
4
u/maxnor1 Jan 01 '22
Thank you for sharing this! I'm glad it happend on the 31th, so my hope isn't destroyed that 2022 all will be better.
4
Jan 01 '22
As usual, when Microsoft fucks us up, the community steps in.
Thanks for the thread guys, saved me a nasty few hours debugging this morning.
4
u/MusicWallaby Jan 01 '22
How can it be nearly 12 hours later and nothing at all anywhere from Microsoft?
5
→ More replies (1)4
4
u/techblackops Jan 01 '22
Disabling antimalware solved the mailflow issue for me, but I've got a separate (appears related) issue with the exchange admin center login. I get the error below. Certs are good and our main cert was just renewed about a month ago.
HMACProvider.GetCertificates:protectionCertificates.Length<1
Any ideas?
→ More replies (2)4
u/Livid-Lie4603 Jan 01 '22
I have had that issue before and used this article to solve it. https://docs.microsoft.com/en-us/exchange/troubleshoot/administration/cannot-access-owa-or-ecp-if-oauth-expired
→ More replies (6)
4
u/Sad-Butterscotch5919 Jan 01 '22
If disabling malware transport agent does not fix it for you, look for 4010 events. Copy the transport rule ID and run a get-transportrule -identity <ruleID>. Disable that transport rule that is shown. (Seems to happen with any rule that scans attachments.) Restart transport service on all servers.
→ More replies (2)
4
u/tourneytalk24 Jan 01 '22
I am not sure if it has been posted but if you have any mail flow rules that check attachments, you will want to disable those as well. The rules checking for attachments seem to use a common mechanism. We initially disabled the anti-malware scanning but still had backed up queues until finally discovering the rule was also an issue.
Happy New Year!
4
u/SaunteringOctopus Jan 02 '22
I just got a call an hour ago saying email wasn't working and started tearing my hair our to figure out why. Luckily I happened to stumble into this post. Thank you so much.
4
u/_LB Jan 02 '22
These are the days that I am so happy to be a subscriber of this subreddit. Thanks for all the info, you have saved my day and a lot of troubles tomorrow.
Happy Y2K22 everybody, stay safe and healthy!
4
u/sedition666 Jan 02 '22
I was lucky and walked into this when it already had fixes up. Still lost 7.5 hours of my weekend to this clusterfuck. Cheers Microsoft.
7
u/Wasteway Jan 01 '22
What a freaking joke. Come on MSFT, what in the actual hell. Much thanks to all of those who found this first and posted on how to fix it. You saved the rest of us tons of time!
1
Jan 01 '22
Anyone have a link to official Microsoft fix.
Just woke up and dealing with this.
1
u/FST-LANE Jack of All Trades Jan 02 '22
The link to the fix has been updated in the original post above.
1
u/netronin Jan 01 '22
Looks like MS may have fixed the issue as the update that came thru at 9:02am PST completed successfully.
2
u/FST-LANE Jack of All Trades Jan 01 '22
Many have reported that even with newer updates, the bug is still present after re-enabling the anti-malware scanning.
→ More replies (1)
1
u/Where_Is_This_1832 Jan 01 '22
My email stopped at 5pm local time, so not sure how the 2022 date played in to that. Disabling FIP-FS got things following again last night, then found out about the bug this morning.
2
u/FST-LANE Jack of All Trades Jan 01 '22
The dates on the definition files are based off GMT; so 5pm local time for you is probably after the turn of the new year in GMT.
1
u/edivadd Jan 01 '22
What are the repercussions of this issue on websites running on an MS stack (.NET, C€ on-premise servers running on Windows)?
I work as a web developer: I understood what caused the bug but I don't understand it's concrete, real world repercussions
→ More replies (2)1
u/FST-LANE Jack of All Trades Jan 01 '22
The concrete real world is the issue that occurred with the update definitions discussed in this post. Because Microsoft choose to use the version numbering format (signed long), when the first two numbers went from ‘21’ to ‘22’, it extended the limited of a signed long data type. And because there was no fail safe, it cause emails to get hung and ruined a ton of people’s New Year’s Eve!
If other developers are doing something similar with their applications, the same thing could occur, of course. But that’s just common knowledge when programming an application. You need to choose a data type that will be able to hold the maximum value of the absolute maximum value that your application will ever receive. For example, I had an appliance service call recently where the address entered on the work order was “123 Some Long Address Apt 321”. But whoever developed the dispatch application must have chosen a data type which was not long enough to store my full address and the appliance repair technician only received “123 Some Long Address Apt 32” in his tablet and he went to the wrong address.
1
u/RegHot Jan 02 '22
My exchange (2016) queues are fine (I'm in Eastern time zone). Should I disable the malware filtering anyway?
Does it fail on its own or after a windows update, restart etc?
3
u/FST-LANE Jack of All Trades Jan 02 '22 edited Jan 02 '22
It fails on its own, after the automatic signature update (unrelated to Windows Updates). Check your application logs, you must still be on a 21xxxxx version instead of 22xxxxxx?
→ More replies (1)2
u/FST-LANE Jack of All Trades Jan 02 '22
Or maybe you previously disabled it because you have third party solution for scanning?
1
u/neko_whippet Jan 02 '22
So i didn't follow the story much as I was on vacation, but was this caused by a patch that Microsoft auto sent to the exchange servers, or was it from a watch that had to be done by an admin?
Im wondering if my customer might get the issue if nobody touched the exchange servers since like DEC 25
1
u/FST-LANE Jack of All Trades Jan 02 '22
It’s due to a bug that existed in the code that nobody knew about and didn’t present itself until 2022. Kinda like Y2K. That’s what I dubbed it “Y2K22”.
→ More replies (1)
1
u/grungegoth Jan 03 '22
in the process of going through the initial fix on my 3 machine dag, I noticed one of my machines is missing the filtering service. Why would that be? for that reason, the fix procedure failed since the filtering service didn't exist to be shutdown/restarted.
I am wondering if I should resinstall 2019CU09 or not. I hadn't installed CU11 yet, and now waiting for CU12 since I don't want to have to revisit any thing broken,fixed,broken again...
right now all my mail is flowing, but malware filtering is disabled. I use a 3rd party gateway anyway since MS Filtering is not very effective it seems...
1
6
3
Jan 01 '22
Wish I found this before spending an hour scratching my head, thanks Microsoft haha.
→ More replies (1)
3
u/Steven20221978 Jan 01 '22
Great work. Happened just as we were making global firewall changes so lots of finger pointing this saved me
3
u/RiceeeChrispies Jack of All Trades Jan 01 '22 edited Jan 01 '22
Updated filtering engine signature to 1.355.1234.0 (released this morning) but email stops flowing when re-enabling Antimalware scanning and restarting transport service - still with the same error.
Anyone experiencing this? UK based.
Edit: Reading into it, guess we’ve got to wait from the boffins at MS. Sounds like just a signature update won’t fix..
7
u/disclosure5 Jan 01 '22
I sure hope that "fix" doesn't look like a three hour Cumulative Update.
→ More replies (1)
3
u/SevereMiel Jan 01 '22
we are still on exchange 2013 and had the same problem a week ago, when i've patched the server ... disabled the antimalware filter and probleme was solved
3
3
u/Mister_Big_Stuff Jan 01 '22
Thanks for posting about this. Saved my morning by giving me the solution for a crazy issue that would have taken me a long time to figure out myself.
3
3
3
3
u/pascalbrax alt.binaries Jan 01 '22
work called me on the first day of the year because all mails stopped, thank you reddit for figuring out why.
3
u/TDSheridan05 Windows Admin Jan 01 '22
Thank you for finding this. I checked my environment and had almost 20k messages stacked up.
3
3
u/ThomasTrain87 Jan 01 '22
Thanks guys - you just saved me a lot of headaches. I knew it was too quiet.
3
u/jrazta Jan 02 '22
FYI, I attempted the bypass and my queues did not start delivering until I did the disable antimalware script.
4 X Exchange 2016 servers on prem.
3
u/bgeller Windows Admin Jan 02 '22
FYI MS just released a script to fix the issue. https://techcommunity.microsoft.com/t5/exchange-team-blog/email-stuck-in-transport-queues/ba-p/3049447
→ More replies (3)
3
u/DogResponsible8491 Jan 02 '22
Anyone getting an error after the update from Microshaft?
A FIP-FS Scan process returned error 0x84004003 PID: 19372 Msg: Scanning Process caught exception:
Stream ID: [email protected]
ScanID: {B9372861-D1FD-47CC-9946-D2AFBC1C9BAA}
(0x84004003) Unknown error 2214608899. Failed to meet engine bias criteria (Available) for filter type (Malware):
Selected engine(s): Microsoft
Available engine(s):
Offline engine(s): ID: {b9372861-d1fd-47cc-9946-d2afbc1c9baa}
5
u/RiceeeChrispies Jack of All Trades Jan 02 '22 edited Jan 02 '22
Same error, not working after update. That’s annoying.
Edit: Rebooting server fixed this.
→ More replies (1)
3
u/Max171121 Jan 02 '22
Thanks sysadmin!
The solution (manual) worked for me: https://techcommunity.microsoft.com/t5/exchange-team-blog/email-stuck-in-transport-queues/ba-p/3049447
Takes 30 minutes! There is no progress bar or something, I checked with: Get-EngineUpdateInformation the progress and version.
Goodluck.
5
5
u/DogResponsible8491 Jan 01 '22
Yes, currently been up half the night trying to find info on this issue.
'The FIP-FS "Microsoft" Scan Engine failed to load. PID: 12128, Error Code: 0x80004005. Error Description: Can't convert "2201010002" to long.'
Got to love Microshaft.
1
u/atari_guy Jack of All Trades Jan 05 '22
Huh. I have a few 5300 and 1106 Event IDs for a couple hours in the evening of 12/31, but nothing since, and as far as I know, mail flow was never interrupted. I have Exchange Server 2016. I just ran the Health Checker script, and it seems to think I need to do corrective action, but if mail flow never stopped is it really necessary? I have a Sonicwall Email Security Appliance in front of the Exchange Server, so I may not even have the anti-malware service on - I actually don't remember what I did with that when I set the server up. (I do see that the Microsoft Exchange Filtering Management Service is not currently running on the server, though it's set for Automatic.)
2
u/atari_guy Jack of All Trades Jan 05 '22
OK, apparently we lucked out because we aren't using it. As a comment at /r/exchangeserver says:
Get-ExchangeServer | % {Get-TransportAgent "Malware Agent"}
Enabled = False for our Exchange server. so that explains things!
2
u/FST-LANE Jack of All Trades Jan 05 '22
That’s correct. If you have it turned off, you would have never gotten the faulty signature update. And if you decide to turn it on in the future, you’ll be fine, since Microsoft changed the format of their signature versions to no longer start with “22”, which was the issue that caused all this.
2
u/atari_guy Jack of All Trades Jan 05 '22
Guess what? Our Sonicwall Email Security Appliance turned out to have the same issue! Except in this case it doesn't stop mail delivery (which is why I didn't notice it until today).
→ More replies (4)
4
u/diezeldeez_ Jan 01 '22 edited Jan 01 '22
Because of this post we did not wake up to a barrage of calls in email shit storm. Thank you, very much for posting this.
Edit: people will downvote anything, I was just saying thank you.
2
2
2
u/NeverEv3rGiveUp Windows Admin Jan 01 '22 edited Jan 01 '22
Happy new year! Same thing here guys! We have more than 150 our customers affected.
2
u/togenshi Jack of All Trades Jan 01 '22
Yep affected as well, bypass malware filter until further notice.
2
u/BuschLightDrinkn Jan 01 '22
Wow. Thank you so much for posting this!! Confirmed PS script worked for us. Great job finding this.
2
u/DogResponsible8491 Jan 01 '22
I've disabled FIPFS, restarted the transport service, bypassed filtering and *still* getting the errors showing and email not being sent.
Transport engine failed to evaluate condition due to Filtering Service error. The rule is configured to ignore errors. Details: 'Organization: '' Message ID 'KTKATYL4PFU4.39SHENK9W21W3@BY1PEPF00001B88' Rule ID '845cc901-be66-401c-9e22-deb0ab244ec1' Predicate 'containsDataClassification' Action ''. FilteringServiceFailureException Error: Microsoft.Exchange.MessagingPolicies.Rules.FilteringServiceFailureException: FIPS data classification failed with error: 'Scan request timed out on the queue:'. See inner exception for details ---> Microsoft.Filtering.ScanQueueTimeoutException: Scan request timed out on the queue:
at Microsoft.Filtering.InteropUtils.ThrowPostScanErrorAsFilteringException(WSM_ReturnCode code, String message)
at Microsoft.Filtering.FilteringService.EndScan(IAsyncResult ar)
at Microsoft.Filtering.FipsDataStreamFilteringService.EndScan(IAsyncResult ar)
at Microsoft.Exchange.MessagingPolicies.Rules.FipsFilteringServiceInvoker.ScanComplete(IFipsDataStreamFilteringService filteringService, ScanCompleteCallback scanCompleteCallback, IAsyncResult asyncResult, ITracer tracer)
--- End of inner exception stack trace ---
at Microsoft.Exchange.MessagingPolicies.Rules.FipsFilteringServiceInvoker.GetDataClassifications(Dictionary`2 classificationsToLookFor, FilteringServiceInvokerRequest filteringServiceInvokerRequest, ITracer tracer, FilteringResults& textExtractionResults)
at Microsoft.Exchange.MessagingPolicies.Rules.BaseTransportRulesEvaluationContext.get_DataClassifications()
at Microsoft.Exchange.MessagingPolicies.Rules.TransportRulesEvaluationContext.get_DataClassifications()
at Microsoft.Exchange.MessagingPolicies.Rules.MessageProperty.OnGetValue(RulesEvaluationContext baseContext)
at Microsoft.Exchange.MessagingPolicies.Rules.Property.GetValue(RulesEvaluationContext context)
at Microsoft.Exchange.MessagingPolicies.Rules.ContainsDataClassificationPredicate.OnEvaluate(RulesEvaluationContext baseContext)
at Microsoft.Exchange.MessagingPolicies.Rules.PredicateCondition.Evaluate(RulesEvaluationContext context)
at Microsoft.Exchange.MessagingPolicies.Rules.AndCondition.Evaluate(RulesEvaluationContext context)
at Microsoft.Exchange.MessagingPolicies.Rules.RulesEvaluator.EvaluateCondition(Condition condition, RulesEvaluationContext evaluationContext)
at Microsoft.Exchange.MessagingPolicies.Rules.TransportRulesEvaluator.EvaluateCondition(Condition condition, RulesEvaluationContext evaluationContext). Message-Id:KTKATYL4PFU4.39SHENK9W21W3@BY1PEPF00001B88'
2
u/SuitAdministrative96 Jan 01 '22
Our Exchange 2016 was affected. Thanks for this! PS script worked like a charm. Hope MS fixes this soon.
2
u/insufficient_funds Windows Admin Jan 01 '22
Thank you jesus! I spent from 11:30-12:30 looking into reports of mail not going out; fortunately for my org, we're entirely on o365, but just have internal servers to act as mail relay for stuff generated by on-prem systems... but still - on just one of our 10ish exchange boxes, i saw 400+ mails queued by 1a. I haven't personally dealt with Exchange issues in literally years... once every 10 weeks on-call, and we almost never get exchange related issues.. geez
2
u/jmch783 Jan 01 '22
Does anyone know if Microsoft has already pulled this update from the URL listed in the primaryupdatepath? For example, our EU based nodes were impacted but US-East nodes appear to be unaffected (as of now). The EU based primaryupdatepath URL is different from the US-East URL.
2
u/wirtnix_wolf Jan 01 '22
hi, that post saved my day! Thank you folks! is there information about when MS will send correct updates again so the malwarefilter can be activated again?
2
u/l337scum Jan 01 '22
Disabling Antimalware scanning in the transport agent is the only way to get past this right now. Been following it here: https://twitter.com/JRoosen/status/1477120097747677184
2
2
u/carfo Jan 01 '22
fuck i learned my lesson. tried to troubleshoot this for hours this morning and of course it's fucking MS. kept asking myself: what changed? sigh. well thanks reddit
2
u/PizzaCatLover Jan 01 '22
Thanks for the post. We're unaffected because we're on 365, but we have clients who are impacted. Good to know what's going on. Y2K came 22 years late!
2
2
u/bsitko Jan 01 '22 edited Jan 01 '22
Another Microsoft fail in a year full of them. I can confirm the bug on my onprem 2016. I can also confirm that this workaround works.
2
u/Swampycore Sr. Sysadmin Jan 01 '22
Thanks for the info! Restored mail flow before anyone even noticed.
2
2
u/The_Great_88 Jan 01 '22
Thank OP!
Our 9 OnPrem 2016 CU22 all required this to get mail following
<Gibbs style head slap to MS>
2
u/carp3tguy Sysadmin Jan 01 '22
Went and checked my Exchange queue after seeing this post and sure enough I’m affected, thanks for posting buddy
2
2
u/carpetflyer Jan 01 '22
Thank you! You saved me. I thought we hit back pressure and I was increasing disk space of the root drive. Still wasn't working.
2
2
u/rs-sysa077 Jan 01 '22
Thanks, nice way to wake up this morning. Appreciate your post. We have mail flowing again and await Microsoft's fix. Good grief.
2
u/Balzovai Sysadmin Jan 01 '22
Thanks crew, I was able to implement the fix almost immediately! You guys were spot on!
Like others, I'll check back tonight and see if the MS defs/engine are patched.
West Coast US here so I was last to the 'game'. 8)
2
Jan 01 '22
Thank you. We had the same issue today and I came across this article that provided the fix! We bypassed ours for now to get smtp working again. Figures MS would release something with a bug. Please keep us posted on an update to fix it and how. Thanks again!
3
u/anachronous_one Jan 01 '22
Much appreciated. This thread is getting enough recognition that it’s being referenced in Mimecast service alerts as “the place” for their partners to go for information about this issue.
2
u/Gullible-Ad-4794 Jan 01 '22
Thank You a Million for posting this. Not sure why it took more Google Searches than I wanted but had this issue with on Prem 2019 Exchange email server & the commands fixed it. We R on our way to O 365 which I know does not make all better- but it helps for having to use Microsoft products. Happy New Year & Most respect & Most Gratitude.
2
u/VTron21 Jan 01 '22
What a fun way to end the year.... break every on-prem exchange server possible.
Thank you reddit for having a fix saved me a lot of headaches today.
I do have one Exchange 2013 and it does not appear to have been impacted. probably because the update url it has is out of date and it's not downloading updates anymore. Client is reluctant to upgrade.
2
2
u/following_snufkin Jan 02 '22
This is great. I need to deliver my masters thesis by Monday morning. Of course IT team at University do not work during the weekend and there is a link needed I can get only on my Uni mail. Thanks Microsoft.
2
u/michellem911 Jan 02 '22
My last email was at 5:05 pm 12/31. Small company single on-prem 2016 here. Users hadn't noticed yet thankfully. Third-party filtering tools, so not worried about bypassing for now. This saved me hours. Awesome as always!
2
u/theHAT_TAHeht Jan 02 '22
Don't want to derail any people actively working on the patch for this, but for the people that have no other anti-malware other than FIPFS (god help you), has anyone considered using a transport rule to loop the email through a third party so they are protected?
A long time ago, I used to have a group I supported that had no AV protection other than O365's email and they wanted more, so we build xport rules that shipped the email to the inbound queue from O365 to an cloud based security utility that ran scans on the email and then fed it back to us. I know services like ProofPoint or SpamTitan or Barracuda are cheap, but as my old boss used to say, 'nothing is more expensive than being in an Outage'. I remember the process being relatively easy to setup, once the service was setup.
2
u/bgeller Windows Admin Jan 02 '22
YMMV but the MS script took about ~25 minutes to run and download updates on my servers.
2
u/Balr0gDooM Jan 02 '22
Oh i wish i found that post earlier yesterday..!! 😰
Spend at least 3-4 hours troubleshooting trying to figure out what was the problem..
Thanks for the update on the fix!
2
Jan 02 '22
We're mostly on M365, but have an on-prem 2016 for some legacy apps. Thanks to this post, I just confirmed we were affected (messages building up in queue), ran the Microsoft script, rebooted the server, and confirmed that the problem had been resolved. No user complaints, as 99% of our mail runs through EOL.
Y'all are incredible. Happy New Year :)
2
u/Doso777 Jan 02 '22
First time i turn on VPN on a fucking sunday. If i don't we will lose thousands of e-mails. I already hate 2022.
2
u/amaiman Sr. Sysadmin Jan 03 '22
So in case anyone else is currently running Exchange 2013 in production but has Exchange 2016/2019 hybrid servers in the environment and is wondering why only what appears to be a certain percentage of mostly internal messages got "stuck" by this bug, the answer is that the recipient was a distribution group. Hope that saves you the few hours I just spent digging into it :-) (It will proxy to the "right" server for individual mailboxes but for a distribution group it will proxy to a random server which can include the hybrid server where it would get caught by the bug.)
2
u/RootsReps420 Jan 04 '22
Hi All,
Currently ran the script microsoft released 2 days ago on a few of my client's exchange servers and worked without a hitch
However, the final exchange server im working on, i keep getting this error:
"WARNING: Unable to process update request because engine metadata is not available. Attempting to synchronize
metadata. Please try to run the cmdlet again later."
Ive tried all the fixes Microsoft recommended and restarted the Exchange server, and still no avail - please any help would be appreciated!
Thanks
2
u/shillyshally Jan 06 '22
Susan Bradley
"Microsoft has started off the patching year — and not in a good way.
Soon after midnight all across the world, mail administrators running Exchange 2013 and Exchange 2016 started noticing that mail was not being delivered in their organizations. Horror of horrors, this has been dubbed the "Y2K22" bug — just what we wanted to hear.
A Reddit thread summarized this well. Mail admins noticed that, as the date on the calendar changed, the mail server was unable to process due to a "... problem related to a date check failure with the change of the new year." We now know the problem is an integer overflow error. An anti-malware component is converting the date/time into the "YYMMDDHHMM" format and storing it as a signed, 32-bit number (max value 2,147,483,648). In December, the number started with "2112," less than 2147. But in January, the number starts with "2201," obviously more than 2147. Thus the system would attempt to store the value into a bucket that was too small to hold it. Microsoft has since posted a workaround/fix to the problem that requires manual action by Exchange administrators.
Why am I pointing this out given that it impacts only mail servers and those that manage mail servers? Because I think it's just another example of the lack of testing and attention to detail that Microsoft is applying to on-premises products. It's one of the reasons why I still recommend that you hold back and not install updates immediately. Rather, I recommend you defer updates until at least January 25. Once again, Microsoft is showcasing that quality testing is lax at best.
Microsoft, and thousands of other companies, invested millions of dollars leading up to the year 2000 to convert all two-digit references to years to four digits, thus staving off the apocalypse until the year 9999. I know it's been 20 years, but didn't the next generation of developers get the message?"
3
3
u/JazDotKiwi Jan 01 '22 edited Jan 01 '22
Thanks team from Sysadmin, we’ve sorted out our customers that have local Exchange servers. Does anyone know if there is impact to 365 services?
Edit: I’ve done some basic testing with our 365 customers but so far seems to be ok.
3
u/VCoupe376ci Jan 01 '22
Mail flow stopped for us at about 8pm last night. Thanks for helping me ring in the new year working Microsoft! F*** you guys in the ass with a baseball bat wrapped in barbed wire for dropping an update on a Friday night leading into a holiday weekend.
268
u/brokenvcenter Jan 01 '22
Hello friend. Same thing. Set-MalwareFilteringServer -BypassFiltering $True -identity <server name>
Queues starting clearing.