Overview
This article provides the solution for instances when the following error message appears in the error log file:
[11/Apr/2019 11:21:06] mail_envelope.cpp: Cannot parse envelope file
/Volumes/KerioBackup2015/queue/04/5c962004-00011523.env: Empty envelope file
Note: This error is usually caused by the zero-byte files, which are generated after the improper shutdown of Kerio Connect.
Process
- Investigate the logs and identify the directory, where the zero-byte files are being generated within the error message. In the error example below, the directory is
/Volumes/KerioBackup2015/queue/
[11/Apr/2019 11:21:06] mail_envelope.cpp: Cannot parse envelope file /Volumes/KerioBackup2015/queue/04/5c962004-00011523.env: Empty envelope file -
Navigate to the directory by running the
cd [directory]
command in the macOS or Linux terminal. In this example, the command would be:cd /Volumes/KerioBackup2015/queue/
-
Run the following command to delete all corrupted files:
find ./ -type f -size 0 -delete
Confirmation
Monitor the logs to confirm that the error does not appear anymore.