I had suggested/asked since years for such a GRP integrity check tool to be shipped with SmarterMail, but I never had a real answer about it from ST.
Due to this I had to invest time and reverse SM DLLs/executables to find functions in the DLLs that are using to handle GRP files (loading, parsing) and built a python script making calls to these functions to have a tool that can do at least some checks such as:
- Can the GRP file be loaded successfully
- Are the mail binary indexes valid (start/end offsets of every mail in the GRP)
- Do every mails in the GRP file have at least the mandatory headers that ever mail should have
It quite helped me for troubleshooting some issues. It is better to run it on detached mailboxes to be sure SmarterMail isn't altering the file during the check.
I am really disappointed that such a tool is not provided by ST for sysadmins managing mail servers based on their product especially when I guess (I hope) they probably have one when they have to troubleshoots issues too...
Kind regards