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

Posted on 2009-02-20
Last Modified: 2013-12-17
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.

Question by:acrocat
    LVL 29

    Accepted Solution

    have a look to this one see if this help
    LVL 23

    Assisted Solution

    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
    LVL 23

    Expert Comment

    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 :(
    LVL 29

    Expert Comment

    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 ?

    Author Comment

    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).
    LVL 29

    Expert Comment

    HI sorry due to weakend didnto able to reply


    are you sing openssl base auththetication  for checking emails from outlook or something else ??
    LVL 23

    Expert Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
    The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now