Berkeley DB error /var/spool/exim/db/retry: unexpected file type or format
This problem occur when receiving the emails in the inbox.
When you facing the above error simply do below following steps to resolve it ,
1) Login to the server as root and stop the EXIM service using below commands :-
root@master[#] /etc/init.d/exim stop
2) root@master[#] cd /var/spool/exim/db/
after that you need to take a backup of “/db” for security purpose and remove all the files.
root@master[#] cp -Ra db/ db.bk/ (For taking a backup )
3) root@master[#] cd /var/spool/exim/db/
4) root@master[#] rm -rf * (for remove/delete files)
And start the EXIM service so the new “db” is automatically created,
5) /etc/init.d/exim start
Here your issue is resolved 😀