• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4651
  • Last Modified:

/var/log/messages: unable to open Berkeley db /etc/sasldb2: No such file or directory

I am running CentOS with sendmail.  In my /var/log/messages I keep seeing this error:

Feb 20 01:38:49 sendmail[3196]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 20 01:38:49 sendmail[3196]: no secret in database

Everything appears to be working OK, but I'd like to know:
 - Why this error appears
 - How I can solve it.

  • 3
  • 3
2 Solutions
have a look to this one see if this help

Maciej SsysadminCommented:
It's cyrus-sasl related issue (this /etc/sasldb2). It complains about nonexisting file /etc/sasldb2 :) You can create empty file with:
saslpasswd2 -f /etc/sasldb2 aaa
provide some password here. It can by anything, as you will delete it in a moment :)
After creating user aaa, delete this account :)
saslpasswd2 -f /etc/sasldb2 -d aaa
sendmail should now stop complaining about missing /etc/sasldb2 file.

It should work, unless you run your sendmail in chrooted environment. If so, you have to replace /etc/sasldb2 with /path/to/your/chrooted/enrionment/etc/sasldb2
Maciej SsysadminCommented:
Eh... fosiul01.. do you always have to be first? ;) Refreshed once, didn't see your comment. I finished writing, clicked submit and... I saw your comment already there with link to the same I wrote ;)

Sorry for repeating :(
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

hahahaha , i am upgraded BOT with some extrac facilities... but your answer is most accurate most of the time then me!! so you get more points..

Can i have your email address ?
acrocatAuthor Commented:
Thanks guys -- I'll get this closed out in the AM, but I was wondering just for the heck of it, why this situation would occur, etc.  It just seems kinda hacky to have to do this (although if it works, I don't care).
HI sorry due to weakend didnto able to reply


are you sing openssl base auththetication  for checking emails from outlook or something else ??
Maciej SsysadminCommented:
Do you use authentication in your SMTP server? You have it configured, but do you use it? If so, where are your users' passwords stored?
Do you have /usr/lib/sasl2/sendmail.conf file? If so, paste its content here.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now