Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-17-2009, 04:18 AM   #1
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No suc

I found this problem has been encountered by many but it has not been resolved for my case with the solution suggested on the web.

I encoutered the above error, and based on postifx website states:
The problem here is if you run smtpd in a chroot environment then it will not find the sasldb file. If you try to authenticate postfix will give an error "warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory". The problem here is that you have a /etc/sasldb2 file, but postfix is looking for a /var/spool/postfix/etc/sasldb2 file.

So, i have checked my , it has the chroot off:
smtp inet n - n - - smtpd

It is unable to resolve the problem even with chroot off.

I have the following postfix and cyrus-sasl installed:


Its on a RHEL5 server.
Because of that, my postfix isn't working with RHEL5.
Anyone else have resolved the problem on RHEL5?
I have rhel4 installed with postfix and sasl before, it is working fine, RHEL4 doesnt not cyrus-sasl-lib, while RHEL5 needs cyrus-sasl-lib rpm instaleld.

There is the only difference i can spot among the two which is a big difference that one is working the other is not.

Pls assist to advice what may help to solve this problem, thanks a lot for taking time assisting,

Old 07-17-2009, 09:22 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Try, in /etc/init.d/postfix, changing the line to:
              FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \
                    etc/nsswitch.conf etc/nss_mdns.config etc/sasldb2"
and restarting Postfix. I'm not sure that'll solve your problem but hopefully. This is from a Debian system but hopefully RHEL has something similar.
Old 07-19-2009, 10:18 PM   #3
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi AlucardZero
Thanks a lot for your kind reply.

I have checked in /etc/init.d/postfix,
unfortunately there is nothing similar to the line you mentioned, so i could not edit anything...

thanks a lot,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SASL and TLS authentication problem in Postfix Mogget Linux - Server 1 03-31-2009 09:12 AM
Sendmail Cyrus SASL authentication problem demith Linux - Software 0 11-15-2006 03:19 AM
cyrus-sasl authentication problem nobu Red Hat 1 11-01-2005 07:54 PM
unable to open Berkeley db /etc/sasldb2 novaprime Linux - Networking 0 01-20-2005 11:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration