Artykuł

A number of emails failed to be processed by GFI MailEssentials

Recently in not really long time one of our Clients reported that GFI Mail Essentials started reporting that a number of emails failed to be processed by GFI MailEssentials. While normally if it happens once or twice it's not a problem GFI reported there are currently 544 emails in C:\Program Files (x86)\GFI\MailEssentials\EmailSecurity\FailedMails. That is a lot of emails.

Solution

While generally the issue should be resolved with vendor and can be caused by one of antivirus engines breaking things… the real issue has to be fixed as over 500 emails were stopped before being deliverd.

Actually this 500 emails became 1200 in just few hours. Fortunately the fix is pretty simple.

Files .PROP can be freely deleted (you can leave them for gfi to verify things)

Files .TXT are standard .EML emails

So now that we know that .TXT files are your standard emails we can simply pass them to Exchange to be reprocessed. You can do that by renaming file extension from .txt to .eml and putting them in

C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Replay folder. If everything is ok, you should notice the file extension changing from .eml to .tmp finally getting removed. If things go wrong the file extension will change from .eml to .bad. If that happens… well you're out of luck. But do not worry, this usually means the email format is bad and therefore it wouldn't pass to Exchange anyways.

While doing this manually is one way you can actually script this a bit. You can create .cmd file and execute following:

Please notice use of PAUSE. This makes sure you can see your results before continuing.. you can remove PAUSE if you're sure what you're doing. The only problem with this solution is that when you push out 1200 emails to replay folder you will get a large queue of emails. In efforts to get things a bit more automated and at same time not filling up your queue too fast I've decided to write this powershell script. Keep in mind it's untested as the scenario didn't happen for 3rd time yet. Goal for this script was to set it up as task scheduled and have it running every few hours to fix the failed folder automatically. When GFI freaks out again I will rework this script to be fully tested. At the moment use it on your own risk (or use the script above – that one works).

Tags: , , , , ,

This is a unique website which will require a more modern browser to work! Please upgrade today!