Bug 239318

Summary: mail/cyrus-imapd25: suggestion: remove the Berkeley DB option
Product: Ports & Packages Reporter: Fred Gilham <fmgilham>
Component: Individual Port(s)Assignee: Hajimu UMEMOTO <ume>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (ume)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Fred Gilham 2019-07-19 20:17:11 UTC
I use FreeBSD 11.3-PRERELEASE #3 r349549, cyrus-imap 2.5. When linking with Berkeley DB I have intermittently gotten database errors, even though I never specified Berkeley DB in the configuration file. I wasn't quite sure why I was getting Berkeley DB-like files in the db directory (i.e. __db.001, __db.002, __db.003 which looked like Berkeley DB files).

Lately I started getting the following errors from the different daemons:

 squatter[54803]: DBERROR db5: pthread suspend failed: Invalid argument

I found that I'd configured Berkeley DB support and that all the Cyrus binaries were linked with Berkeley DB 5.3. I removed the Berkeley DB option, reinstalled, and rebuilt the /var/imap directory and now things work OK, with no Berkeley DB files appearing.

Suggestion: remove the Berkeley DB option or at least note that Cyrus Imap will still use Berkeley DB for some things even if you don't configure it in the config file. Also the Berkeley DB support seems to have bit-rotted.