Find the answer to your Linux question:
Results 1 to 3 of 3
hi, My postfix server is failing authentication due to looking for a berkley db for auth and not finding it. Strangest thing. in main.cf (Below) is it set to use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    5

    Postfix and Berkley - Its meant to be dovecot Auth


    hi, My postfix server is failing authentication due to looking for a berkley db for auth and not finding it.

    Strangest thing. in main.cf (Below) is it set to use dovecot for authentication (Is it not)

    any ideas would be appreciated.

    Code:
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    readme_directory = no
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    myhostname = vps.devtest.co.nz
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    #mydestination = vps.devtest.co.nz
    mailbox_size_limit = 0
    recipient_delimiter = +
    smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
    smtpd_tls_security_level = may
    myorigin = /etc/mailname
    mailbox_command = procmail -a "$EXTENSION"
    inet_protocols = all
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    
    #SMTP Auth
    smtpd_sasl_auth_enable = yes
    smptd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    smtpd_sasl_authenticated_header = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_security_option = noanonymous
    
    ##mysql lookup for virtual domains
    relay_domains = mysql:/etc/postfix/db-config/relay_domains.cf
    virtual_alias_maps = mysql:/etc/postfix/db-config/virtual_alias_maps.cf
    virtual_mailbox_domains = mysql:/etc/postfix/db-config/virtual_domain_maps.cf
    virtual_mailbox_maps = mysql:/etc/postfix/db-config/virtual_mailbox_maps.cf
    virtual_mailbox_base = /var/mail/vhosts
    virtual_mailbox_limit = 512000000
    virtual_minimum_uid = 8
    virtual_transport = virtual
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    local_transport = virtual
    local_recipient_maps = $virtual_mailbox_maps

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    any log postings would be cool. are all your other systems (dovecot, postfix) working ok? what is the output of:

    Code:
    postconf -a
    postconf -A
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Posts
    5
    Thanks, I dont know what the issue was but i got everything working by creating the config file from a default backup.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •