ME Scratch Directory Delete Directory & File Issue F-Pro

Discussion forum for Enterprise Edition.
Post Reply
cqi
Posts: 38
Joined: Sat Jan 13, 2007 5:35 pm

ME Scratch Directory Delete Directory & File Issue F-Pro

Post by cqi »

I have been trying to find an answer to this but cannot. I use F-Prot 6 and I'm having some issues with directories and files not being deleted. When I monitor it, it appears to be working ok but my log file has the following errors and I do end up with stranded directories and files that are not deleted. Ian, can you or Ben assist with this?

I have my MTA setting at 3 and I set my "Process Timeout" within the MTA to 4000. What else can I do here? Any assistance would be appreciated.

Tks -- Mark

-- Log --

12/14/07 09:25:12 Start - - - - - - -
12/14/07 09:25:12 ->DeleteFiles::[MTAFILTER] Could not delete file d:\PROGRA~1\MAILEN~1\Scratch\7AEBC7F4BE64433BB5AC113271A5CCD6.MAI\7AEBC7F4BE64433BB5AC113271A5CCD6.MAI (Error: 32)
12/14/07 09:25:12 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory d:\PROGRA~1\MAILEN~1\Scratch\7AEBC7F4BE64433BB5AC113271A5CCD6.MAI (Error: 145)
12/14/07 09:38:43 ->DeleteFiles::[MTAFILTER] Could not delete file d:\PROGRA~1\MAILEN~1\Scratch\35C412E89C074592A5AADE6A7A364DB0.MAI\35C412E89C074592A5AADE6A7A364DB0.MAI (Error: 32)
12/14/07 09:38:43 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory d:\PROGRA~1\MAILEN~1\Scratch\35C412E89C074592A5AADE6A7A364DB0.MAI (Error: 145)
12/14/07 09:51:47 ->DeleteFiles::[MTAFILTER] Could not delete file d:\PROGRA~1\MAILEN~1\Scratch\MEFilter000014158778FAF7647398E00A3A470D0DEBC.MAI\MEFilter000014158778FAF7647398E00A3A470D0DEBC.MAI (Error: 32)
12/14/07 09:51:47 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory d:\PROGRA~1\MAILEN~1\Scratch\MEFilter000014158778FAF7647398E00A3A470D0DEBC.MAI (Error: 145)
12/14/07 09:51:47 ->DeleteFiles::[MTAFILTER] Could not delete file d:\PROGRA~1\MAILEN~1\Scratch\MEFilter000024158778FAF7647398E00A3A470D0DEBC.MAI\MEFilter000024158778FAF7647398E00A3A470D0DEBC.MAI (Error: 32)
12/14/07 09:51:47 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory d:\PROGRA~1\MAILEN~1\Scratch\MEFilter000024158778FAF7647398E00A3A470D0DEBC.MAI (Error: 145)
12/14/07 10:00:26 End - - - - - - -
Time Action MessageID Connector Filter Result Account Sender ClientIP
12/14/07 10:02:22 Start - - - - - - -
12/14/07 10:02:22 ->DeleteFiles::[MTAFILTER] Could not delete file d:\PROGRA~1\MAILEN~1\Scratch\BDDE602E8C734FA0A684B3548E94D2A6.MAI\BDDE602E8C734FA0A684B3548E94D2A6.MAI (Error: 32)
12/14/07 10:02:22 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory d:\PROGRA~1\MAILEN~1\Scratch\BDDE602E8C734FA0A684B3548E94D2A6.MAI (Error: 145)
12/14/07 10:03:51 End - - - - - - -
Time Action MessageID Connector Filter Result Account Sender ClientIP
12/14/07 10:06:38 Start - - - - - - -
12/14/07 10:06:38 ->DeleteFiles::[MTAFILTER] Could not delete file d:\PROGRA~1\MAILEN~1\Scratch\780D657A93B44FFCA046E2C9105DD854.MAI\780D657A93B44FFCA046E2C9105DD854.MAI (Error: 32)
12/14/07 10:06:38 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory d:\PROGRA~1\MAILEN~1\Scratch\780D657A93B44FFCA046E2C9105DD854.MAI (Error: 145)

keith@vfsremote.com
Posts: 25
Joined: Fri Mar 20, 2015 7:53 pm

Re: ME Scratch Directory Delete Directory & File Issue F-Pro

Post by keith@vfsremote.com »

Similiar issue here

Currently on version 8.60, will be upgrading shortly

MEAVGEN-REPORT

Time Action MessageID Connector Filter Result Account Sender ClientIP
06/10/15 09:47:44 Start - - - - - - -
06/10/15 09:47:44 ->DeleteFiles::[MTAFILTER] Could not delete file C:\PROGRA~2\MAILEN~1\Scratch\42727BAF309949A89A7063A9EFBB3421.MAI\42727BAF309949A89A7063A9EFBB3421.MAI (Error: 5)
06/10/15 09:47:50 ->DeleteFiles::[MTAFILTER] Could not delete file C:\PROGRA~2\MAILEN~1\Scratch\42727BAF309949A89A7063A9EFBB3421.MAI\5.ATT (Error: 5)
06/10/15 09:47:50 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory C:\PROGRA~2\MAILEN~1\Scratch\42727BAF309949A89A7063A9EFBB3421.MAI (Error: 2)
Keith Damron
Manager of Customer Support

VisionFriendly.com
1250 E. Diehl Road, Suite 302
Naperville, IL 60563
630 553-0000 x112
Keith@visionfriendly.com

MartynK
Posts: 1376
Joined: Sat Dec 28, 2002 1:12 am
Location: Hong Kong

Re: ME Scratch Directory Delete Directory & File Issue F-Pro

Post by MartynK »

This problem has been here for years and I think the actual problem is with F-Prot.

From memory if you use a utility like FileMon, even with real time scanning switched off, you can see for a split second that F-Prot actual has open file handles to files, hence ME cannot delete them.

keith@vfsremote.com
Posts: 25
Joined: Fri Mar 20, 2015 7:53 pm

Re: ME Scratch Directory Delete Directory & File Issue F-Pro

Post by keith@vfsremote.com »

MartynK wrote:This problem has been here for years and I think the actual problem is with F-Prot.

From memory if you use a utility like FileMon, even with real time scanning switched off, you can see for a split second that F-Prot actual has open file handles to files, hence ME cannot delete them.
So what is the solution for someone running F-Prot. Are these viruses still getting routed to the mailboxes unfiltered? It would seem to me that is a problem for both Mailenable and F-Prot. Mailenable does promote compatibility with F-Prot, making MailEnable ultimately responsible for ensuring it continues to work nicely with F-Prot.

Currently my environment is running into this issue on 8.61, not going to update until I'm confident rolling out version 9 won't break my production environment and make me lose clients, I've had issues with updates before that went days without resolution causing A LOT of lost revenue.

09/23/16 15:28:19 ->DeleteFiles::[MTAFILTER] Could not delete file C:\PROGRA~2\MAILEN~1\Scratch\6FEB68EB443D47B59DC4342375C7782D.MAI\6FEB68EB443D47B59DC4342375C7782D.MAI (Error: 5)
09/23/16 15:28:19 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory C:\PROGRA~2\MAILEN~1\Scratch\6FEB68EB443D47B59DC4342375C7782D.MAI (Error: 2)
09/23/16 15:28:20 ->DeleteFiles::[MTAFILTER] Could not delete file C:\PROGRA~2\MAILEN~1\Scratch\52B7717B67604373880887ABFF087B00.MAI\52B7717B67604373880887ABFF087B00.MAI (Error: 5)
09/23/16 15:28:20 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory C:\PROGRA~2\MAILEN~1\Scratch\52B7717B67604373880887ABFF087B00.MAI (Error: 2)
09/23/16 15:28:21 ->DeleteFiles::[MTAFILTER] Could not delete file C:\PROGRA~2\MAILEN~1\Scratch\22379BF41E69410FA46BC2ABD35DF987.MAI\22379BF41E69410FA46BC2ABD35DF987.MAI (Error: 5)
09/23/16 15:28:27 ->DeleteFiles::[MTAFILTER] Could not delete file C:\PROGRA~2\MAILEN~1\Scratch\22379BF41E69410FA46BC2ABD35DF987.MAI\3.ATT (Error: 5)
09/23/16 15:28:27 ->CleanupScratchArea:: [MTAFILTER] Could not remove directory C:\PROGRA~2\MAILEN~1\Scratch\22379BF41E69410FA46BC2ABD35DF987.MAI (Error: 2)

Thank You,

Keith Damron
VisionFriendly.com
Keith Damron
Manager of Customer Support

VisionFriendly.com
1250 E. Diehl Road, Suite 302
Naperville, IL 60563
630 553-0000 x112
Keith@visionfriendly.com

VFSKeith
Posts: 22
Joined: Thu Oct 02, 2014 7:02 pm

Re: ME Scratch Directory Delete Directory & File Issue F-Pro

Post by VFSKeith »

Still stuck with a semi broken virus scanner over 2 years after initially posting.

Looooong Time MailEnable Customer
Using Mailenable Enterprise 9.75
Using F-Prot 6 for Virus Scanner.

If I disable file system protection I can get real time scanning to stop catching things in the scratch directory. I can then get the test to run fine. When I apply the new settings for Mail Enable to pass messages to fpscan.exe and check the logs, there are 2 lines with errors and 1 line showing a message has been cleaned. The log ends with "end" and never gets more entries than that.... it just stops working.

09/01/17 15:29:53 ->UpdateMessageFile::Could not delete file. (Error: 32)
09/01/17 15:29:53 ->UpdateMessageFile::Could not rename temporary file to actual file. (Error: 80)
09/01/17 15:29:53 Cleaned 29A5B1F20FA84E67B8F4F44A5EAF0BF0.MAI SMTP MTAFILTER 0 domain.com notreal@domain.com 1.1.1.1

In the past I had attempted to decrease the MTA threads to resolve the situation. When the threads were reduced to 1 the logs looked better but message processing became so slow that the server would get backed up within seconds.

The only thing I can do to keep some protection on and keep mail flowing is to allow real time scanning to take place in the scratch directory. This leads to blank messages and various other issues.

We need a solution that will do well with a high volume server. We have tried the included ClamAV software as recently as 6 months ago, but the results surprisingly caused ME to process messages at a rate even slower than fpspan.exe. Any suggestions anyone?
Thank You,

Keith Damron
VF

Post Reply