SOLVED

Exchange Server Mail Stuck on Queue due to Microsoft Bug 01/01/2022

%3CLINGO-SUB%20id%3D%22lingo-sub-3049211%22%20slang%3D%22en-US%22%3EExchange%20Server%20Mail%20Stuck%20on%20Queue%20due%20to%20Cyber%20attack%2001%2F01%2F2022%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3049211%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20a%20live%20Cyber%20Attack%20going%20on%20in%20On%20premise%20Exchange.%20To%20resolve%20the%20issue%20Please%20Disable%20your%20Antimalware%20filter%20just%20for%20now%20so%20you%20can%20start%20your%20communication%20again.%20Please%20note%20that%20this%20is%20not%20final%20solution.%20this%20is%20just%20workaround%20for%20now%3C%2FP%3E%3CP%3EPlease%20follow%20the%20below%20step%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EGo%20to%20This%20location%20%E2%80%9CC%3A%5CProgram%20Files%5CMicrosoft%5CExchange%20Server%5CV15%5CScripts%5C%E2%80%9D%20and%20run%20Disable-Antimalwarescanning.ps1%26nbsp%3B%20%26nbsp%3B%20%3CFONT%20color%3D%22%23FF6600%22%3E%26nbsp%3B%3C%2FFONT%3E%3CFONT%20color%3D%22%2300FFFF%22%3E%3CFONT%20color%3D%22%23FF6600%22%3EFollow%20Microsoft%20Article%20if%20you%20need%20help%20to%20run%20the%20command%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fdisable-or-bypass-anti-malware-scanning-exchange-2013-help%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fdisable-or-bypass-anti-malware-scanning-exchange-2013-help%3C%2FA%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3ERestart%20Transport%20Service%3C%2FLI%3E%3CLI%3ENew-SettingOverride%20-Name%20%22DisablingAMSIScan%22%20-Component%20Cafe%20-Section%20HttpRequestFiltering%20-Parameters%20(%22Enabled%3DFalse%22)%20-Reason%20%22Testing%22%3C%2FLI%3E%3C%2FOL%3E%3CP%3EFollowing%20third%20step%20is%20not%20necessary.%20This%20step%20is%20necessary%20only%20if%20you%20have%20third%20party%20malware%20agent.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

There is a live Bug going on in On premise Exchange. To resolve the issue Please Disable your Antimalware filter just for now so you can start your communication again. Please note that this is not final solution. this is just workaround for now

Please follow the below step:

 

  1. Go to This location “C:\Program Files\Microsoft\Exchange Server\V15\Scripts\” and run Disable-Antimalwarescanning.ps1     Follow Microsoft Article if you need help to run the command https://docs.microsoft.com/en-us/exchange/disable-or-bypass-anti-malware-scanning-exchange-2013-help
  2. Restart Transport Service
  3. New-SettingOverride -Name "DisablingAMSIScan" -Component Cafe -Section HttpRequestFiltering -Parameters ("Enabled=False") -Reason "Testing"

SABBIRRUBAYAT_0-1641021332963.png

 

Following third step is not necessary. This step is necessary only if you have third party malware agent. 

18 Replies

I confirm this has allowed for communication flow to resume

@SABBIRRUBAYAT Where do you see that there is an 'Cyber Attack' ?

 

It seems there is a bug in the moduoe 'FIP-FS' if you look in your Eventlog

 

The FIP-FS "Microsoft" Scan Engine failed to load. PID: 20132, Error Code: 0x80004005. Error Description: Can't convert "2201010004" to long.

 

Looks like there are using long in there application
with an max number of
214748 3647 and they try (date looks like?) to parse and higher number 2201010004

A solution without a reboot from servies is:

 

Set-MalwareFilteringServer -Identity <<SERVERNAMEHERE>> -BypassFiltering $true

 

Please note!! This is a temporary solution! get a good virus, mallware and spam scanner on your Exchange server from a third party!

 

 

best response confirmed by SABBIRRUBAYAT (Occasional Contributor)
Solution

@amaltsev Are you sure this is a cyberattack and not a bug?  According to most reports I've read, this is due to a failure converting to a new date and occurred at midnight UTC.

It's a bug!
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-u... 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!

Paolo Caparrelli
GOLINE SA
IT Services

@SABBIRRUBAYAT - just a note that it's not a cyber attack, it's an int32 conversion issue with the date code of the 2022 signatures that Microsoft still hasn't fixed.

 

I had also originally disabled malware scanning using the disable scripts last night to get things working, but the problem with this is that the malware definitions/engines are never updated for the FIP-FS service when you do that...it's better to set all your servers to bypass scanning instead.  I had tried this last night before the internet blew up (this is for 2013 but same thing for 2016/2019 - https://docs.microsoft.com/en-us/exchange/disable-or-bypass-anti-malware-scanning-exchange-2013-help).  The problem with that article is it doesn't say to restart the transport service after running the bypass command - but you have to do that for it to take effect. 

 

If you do it this way, mailflow will work and your definitions will continue to be updated so that hopefully when Microsoft fixes this your servers will be updated so that when you remove the bypass things continue to work (rather than re-enabling scanning, then waiting for the engines to update which takes a long time/breaks your mail flow again).

I only ran the two steps below, and the email started to flow after.
1. Disable-Antimalwarescanning.ps1
2. restart the transport service
I did not run Set-MalwareFilteringServer <ServerIdentity> - BypassFiltering $true instead of the above two.

Will the next Exchange patch release installation re·vert
the antimalware agent back "on," as on the default installation, and again we have to disable the agent?

It’s one or the other, not both - I personally recommend bypassing instead of full disable so you’re still receiving updates. Your malware scanning will stay on bypass for each exchange server until you set it back to disabled and restart the transport services again. But it’s entirely up to you on what you do…

I can’t believe Microsoft support hasn’t released anything official about this at this point.
How funny that IF this was a cyber attack (which it is not) that your recommendation is to bypass/disable filtering.

If it was a cyberattack, I think you’d want to leave filtering enabled even if it meant no mail flowing for a while…

@Corbett Endersmy thoughts exactly. however I stumbled on the fix from an old article that recommends bypassing it. I've also kept an eye on the firewall, and nothing out of the ordinary.

Thank you , saved me to search this morning. (Can confirm this works)
I apologize . this is a bug
Definitely you are right. I found the solution at the first hour and I started getting call from multiple companies at the same time. I was a little bit freaked out and thought this might be a cyber attack. I apologize for my mistake
Apologize for my mistake identifying as cyber attack . Actually the behavior pattern was like that . anyway lucky it was a bog not an attack
Thank you ..................... and apologize to identify this as cyber attack . thanks anyway

@LeeMEI please note that my answer relates only to the action steps proposed, nothing to do with the origin of the problem