Announcement

Collapse
No announcement yet.

SASL: unable to open Berkeley db /etc/sasldb2: Permission denied

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SASL: unable to open Berkeley db /etc/sasldb2: Permission denied

    I have installed OX with the community-installer on a virtual Debian-Etch and get the following message when trying to send mail from thunderbird:

    mail.log
    postfix/smtpd[18132]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
    postfix/smtpd[18132]: connect from <CLIENT-IP>
    postfix/smtpd[18132]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
    postfix/smtpd[18132]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
    postfix/smtpd[18132]: warning: SASL authentication failure: no secret in database
    postfix/smtpd[18132]: warning: <CLIENT-IP>: SASL CRAM-MD5 authentication failed: authentication failure
    postfix/smtpd[18132]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
    postfix/smtpd[18132]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
    postfix/smtpd[18132]: warning: SASL authentication failure: no secret in database
    postfix/smtpd[18132]: warning: <CLIENT-IP>: SASL NTLM authentication failed: authentication failure
    postfix/smtpd[18132]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
    last message repeated 4 times
    postfix/smtpd[18132]: warning: SASL authentication failure: Password verification failed
    postfix/smtpd[18132]: warning: <CLIENT-IP>: SASL PLAIN authentication failed: authentication failure
    postfix/smtpd[18132]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
    last message repeated 5 times
    postfix/smtpd[18132]: warning: <CLIENT-IP>: SASL LOGIN authentication failed: authentication failure
    postfix/smtpd[18132]: lost connection after AUTH from <CLIENT-IP>
    postfix/smtpd[18132]: disconnect from <CLIENT-IP>

    sasldb2-Rights
    Orginal: -rw-rw---- 1 root sasl 12288 2008-04-10 10:47 sasldb2
    Modified: -rw-r----- 1 cyrus root 12288 2008-04-10 10:47 sasldb2

    Both variants produces the Message shown.


    /etc/default/saslauthd
    START=yes
    MECHANISMS="pam"

    ll /etc/postfix/
    -rw-r--r-- 1 root root 373 2008-04-18 07:29 dynamicmaps.cf
    -rw-r--r-- 1 root root 988 2008-04-23 11:58 main.cf
    -rw-r--r-- 1 root root 745 2008-04-18 08:58 main.cf.old
    -rw-r--r-- 1 root root 933 2008-04-23 07:56 main.cf.SAVE
    -rw-r--r-- 1 root root 3381 2008-04-18 09:00 master.cf
    -rw-r--r-- 1 root root 2268 2008-04-18 08:58 master.cf.old
    -rw-r--r-- 1 root root 3381 2008-04-22 10:38 master.cf.SAVE
    -rw-r--r-- 1 root root 164 2008-04-18 08:58 ox_aliases.cf
    -rw-r--r-- 1 root root 163 2008-04-18 08:58 ox_domains.cf
    -rw-r--r-- 1 root root 166 2008-04-18 08:58 ox_externaldomaincheck.cf
    -rw-r--r-- 1 root root 371 2008-04-18 08:58 ox_group_aliases.cf
    -rw-r--r-- 1 root root 338 2008-04-18 08:58 ox_resource_aliases.cf
    -rw-r--r-- 1 root root 168 2008-04-18 08:58 ox_senderrestrictions.cf
    -rw-r--r-- 1 root root 339 2008-04-18 08:58 ox_user_aliases.cf
    -rw-r--r-- 1 root root 17975 2007-03-21 12:17 postfix-files
    -rwxr-xr-x 1 root root 6840 2007-03-21 12:17 postfix-script
    -rwxr-xr-x 1 root root 22239 2007-03-21 12:17 post-install
    drwxr-xr-x 2 root root 1024 2008-04-23 09:19 sasl

    /etc/postfix/main.cf
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_path = smtpd

    myhostname = mail.wikiparking.de
    mydestination = $myhostname,localhost.$mydomain

    mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp

    virtual_alias_domains = mysql:/etc/postfix/ox_domains.cf
    virtual_alias_maps = mysql:/etc/postfix/ox_user_aliases.cf, mysql:/etc/postfix/ox_aliases.cf, mysql:/etc/postfix/ox_resource_aliases.cf, mysql:/etc/postfix/ox_group_aliases.cf

    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/ox_externaldomaincheck.cf
    smtpd_restriction_classes = local_only
    local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject

    smtpd_recipient_restrictions = check_sender_access mysql:/etc/postfix/ox_senderrestrictions.cf, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
    smtpd_tls_cert_file = /etc/ssl/certs/eecert.pem
    smtpd_tls_key_file = /etc/ssl/private/eekey.pem
    procmail_destination_concurrency_limit = 1
    procmail_destination_recipient_limit = 1

    /etc/postfix/master.cf
    smtp inet n - - - - smtpd
    -o content_filter=smtp-amavis:[127.0.0.1]:10024
    pickup fifo n - - 60 1 pickup
    cleanup unix n - - - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - - 300 1 oqmgr
    tlsmgr unix - - - 1000? 1 tlsmgr
    rewrite unix - - - - - trivial-rewrite
    bounce unix - - - - 0 bounce
    defer unix - - - - 0 bounce
    trace unix - - - - 0 bounce
    verify unix - - - - 1 verify
    flush unix n - - 1000? 0 flush
    proxymap unix - - n - - proxymap
    smtp unix - - - - - smtp
    relay unix - - - - - smtp
    -o fallback_relay=
    showq unix n - - - - showq
    error unix - - - - - error
    discard unix - - - - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - - - 1 anvil
    scache unix - - - - 1 scache
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
    uucp unix - n n - - pipe
    flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    ifmail unix - n n - - pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp unix - n n - - pipe
    flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix - n n - 2 pipe
    flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman unix - n n - - pipe
    flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
    ${nexthop} ${user}

    procmail unix - n n - 5 pipe
    flags=R user=nobody argv=/usr/bin/procmail -t -m /opt/open-xchange/etc/admindaemon/procmailrc ${sender} ${user} ${recipient}
    smtp-amavis unix - - n - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20
    127.0.0.1:10025 inet n - n - - smtpd
    -o content_filter=procmail:spamcheck
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,rej ect
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_ unknown_recipient_checks
    smtps inet n - n - - smtpd
    -o smtpd_tls_wrappermode=yes
    -o content_filter=smtp-amavis:[127.0.0.1]:10024

    /etc/postfix/sasl/smtp.conf
    pwcheck_method: pam

    I'm sure the solution is on the net, but my searches about this problem don't produces the solution.
    So any Ideas about what is going wrong are welcome.

    Thanks in advance.

    Matthias
    Last edited by Guest; 04-23-2008, 03:58 PM. Reason: correct some cut & paste errors
Working...
X