Answer
PROBLEM
Routing to one or more users' sub-folders as an action in GFI MailEssentials works for most, but not all mailboxes. Usually this affects just one or two mailboxes at a time.ENVIRONMENT
- GFI MailEssentials
- All supported environments
SOLUTION
Export the mailbox and re-create it. Once the new mailbox has been created, routing to the sub-folder should work properly.In the QAS.MTEF logs, you will see logging similar to the below:
444,1,"#000027C4","#00000004","info ","QAS.MTEF","------- Message-Id <xxx@mail.gmail.com> is getting processed for CURRENT action -------"
444,1,"#000027C4","#00000004","info ","QAS.MTEF","MES_ACTIONS_MVEXCH_PROP_FOLDER=Junk E-mail"
444,1,"#000027C4","#00000004","info ","QAS.MTEF","MES_ACTIONS_PROP_MAIL_RECIPIENT_LIST object found."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Getting raw data filename..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Raw file = <C:\Program Files (x86)\GFI\MailEssentials\Antispam\MiddleQueue\2274-1d48-b710d88-000000000000064-000000000008022.rdt>"
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Creating propertyBag..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Writing folder as <Junk E-mail>..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Copying recipient list..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Writing full path of raw data file as <C:\Program Files (x86)\GFI\MailEssentials\Antispam\MiddleQueue\2274-1d48-b710d88-000000000000064-000000000008022.rdt>..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Setting Recipient type as <1>..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Creating Gfimvexch.MvExch COM object..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Gfimvexch COM object created successfully."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Invoking MoveToExchFolder()..."
537,1,"#000027C4","#00000004","info ","QAS.MTEF","flag returned: 2"
537,1,"#000027C4","#00000004","info ","QAS.MTEF","Triggering the Global actions flag..."
537,1,"#000027C4","#00000004","info ","QAS.MTEF","Removing action from the current actions flag..."
116,1,"#000027C4","#00000004","info ","QAS.MTEF","=========================================================================="
444,1,"#000027C4","#00000004","info ","QAS.MTEF","MES_ACTIONS_MVEXCH_PROP_FOLDER=Junk E-mail"
444,1,"#000027C4","#00000004","info ","QAS.MTEF","MES_ACTIONS_PROP_MAIL_RECIPIENT_LIST object found."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Getting raw data filename..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Raw file = <C:\Program Files (x86)\GFI\MailEssentials\Antispam\MiddleQueue\2274-1d48-b710d88-000000000000064-000000000008022.rdt>"
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Creating propertyBag..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Writing folder as <Junk E-mail>..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Copying recipient list..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Writing full path of raw data file as <C:\Program Files (x86)\GFI\MailEssentials\Antispam\MiddleQueue\2274-1d48-b710d88-000000000000064-000000000008022.rdt>..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Setting Recipient type as <1>..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Creating Gfimvexch.MvExch COM object..."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Gfimvexch COM object created successfully."
444,1,"#000027C4","#00000004","info ","QAS.MTEF","Invoking MoveToExchFolder()..."
537,1,"#000027C4","#00000004","info ","QAS.MTEF","flag returned: 2"
537,1,"#000027C4","#00000004","info ","QAS.MTEF","Triggering the Global actions flag..."
537,1,"#000027C4","#00000004","info ","QAS.MTEF","Removing action from the current actions flag..."
116,1,"#000027C4","#00000004","info ","QAS.MTEF","=========================================================================="
Check the Microsoft Exchange log to find out why the delivery to the subfolder is not succeeding.
The solution is to either upgrade the customer to GFI MailEssentials SR3 or have them create a mailbox for the email address. If they are on Microsoft Exchange 2003 or 2007 server and they do have mailboxes created also, have the customer try this:
- Open a command prompt and navigate to ..\Program Files\Common Files\Microsoft Shared\CDO\
- Type regsvr32 cdoex.dll
- Open a command prompt and navigate to ..\Program Files\exchsrvr\bin\
- Type regsvr32 exoledb.dll
- Type regsvr32 exodbprx.dll
- Restart the IISAdmin service and the Microsoft Information Store service
- Check if the problem persists
108,1,"#00001314","#00000035","info ","QAS.MTEF","Searching for <Spam> subfolder..."
139,1,"#00001314","#00000035","error ","QAS.MTEF","ERROR: You have exceeded the maximum number of objects that can be returned for the find operation. Use paging to reduce the result size and try your request again."
139,1,"#00001314","#00000035","info ","QAS.MTEF","CreateFolder: Spam"
171,1,"#00001314","#00000035","error ","QAS.MTEF","ERROR: Could not create folder Spam"
171,1,"#00001314","#00000035","error ","QAS.MTEF","ERROR: folderIdType=null"
171,1,"#00001314","#00000035","info ","QAS.MTEF","List of failed recipients: xxx@domain.com"
171,1,"#00001314","#00000035","info ","QAS.MTEF","Triggering the Global actions flag..."
139,1,"#00001314","#00000035","error ","QAS.MTEF","ERROR: You have exceeded the maximum number of objects that can be returned for the find operation. Use paging to reduce the result size and try your request again."
139,1,"#00001314","#00000035","info ","QAS.MTEF","CreateFolder: Spam"
171,1,"#00001314","#00000035","error ","QAS.MTEF","ERROR: Could not create folder Spam"
171,1,"#00001314","#00000035","error ","QAS.MTEF","ERROR: folderIdType=null"
171,1,"#00001314","#00000035","info ","QAS.MTEF","List of failed recipients: xxx@domain.com"
171,1,"#00001314","#00000035","info ","QAS.MTEF","Triggering the Global actions flag..."
There are too many sub-folders listed and it is breaking the search function. There is no workaround for this at this time other than to either use the Junk email function, or reduce the number of sub-folders in the Inbox.
CAUSE
Flag returned: 2 means that the sub-folder is missing, therefore we cannot route to it. It has either never been created or the mailbox is not present.