I have a server where IMAP is overwhelmingly used for mailboxes so am looking to use the optimize-imap.py script provided by Kopano.
I ran this script on 3 users on the server without error, but for some reason it throws up an error when I try to run the script now.
python /usr/share/doc/kopano-gateway/optimize-imap.py username
Returns the following error:
[error ] VMIME exception: No recipient specified. Traceback (most recent call last): File "/usr/share/doc/kopano-gateway/optimize-imap.py", line 55, in <module> main() File "/usr/share/doc/kopano-gateway/optimize-imap.py", line 51, in main generate_imap_message(item) File "/usr/share/doc/kopano-gateway/optimize-imap.py", line 19, in generate_imap_message eml = item.eml(received_date=True) File "/usr/lib/python2.7/site-packages/kopano/item.py", line 525, in eml self.emlfile = inetmapi.IMToINet(self.store.server.mapisession, None, self.mapiobj, sopt) MAPI.Struct.MAPIErrorCallFailed: MAPI error 80004005 (MAPI_E_CALL_FAILED)
This error occurs running the script for any user. The username specified is correct and appears when running:
Can anyone offer any advice on how to diagnose this?
Many thanks in advance.