Problem:
Aug 23 17:37:50 localhost master[16716]: about to exec /usr/lib/cyrus-imapd/lmtpd
Aug 23 17:37:50 localhost lmtpunix[16716]: executed
Aug 23 17:37:50 localhost lmtpunix[16716]: DBERROR db4: /var/lib/imap/deliver.db: unexpected file type or format
Aug 23 17:37:50 localhost lmtpunix[16716]: DBERROR: opening /var/lib/imap/deliver.db: Invalid argument
Aug 23 17:37:50 localhost lmtpunix[16716]: DBERROR: opening /var/lib/imap/deliver.db: cyrusdb error
Aug 23 17:37:50 localhost lmtpunix[16716]: FATAL: lmtpd: unable to init duplicate delivery database
Aug 23 17:37:50 localhost master[3545]: process 16716 exited, status 75
Aug 23 17:37:50 localhost master[3545]: service lmtpunix pid 16716 in READY state: terminated abnormally
Solution:
# service cyrus-imapd stop # rm /var/lib/imap/tls_sessions.db* # rm /var/lib/imap/deliver.db* # rm /var/lib/imap/db/* # service cyrus-imapd start