warning: SASL authentication failure: cannot connect to saslauthd server: No such fil

Discussion in 'Server Operation' started by gridorian, May 9, 2011.

  1. gridorian

    gridorian New Member

    Hello, guys.

    I'm trying to move/re-configure my mail server from an older debian server to a gentoo one.

    I kinda configured everything i know/remember, but I have one big problem.

    I keep getting this warning. You have bellow my postfix config as well. Can you help me? What other config should I provide?
    All posts i found online about this didn't help and chrooting and I would like to solve this without chrooting if possible :D.

    Code:
    May  9 18:31:29 gentoo postfix/smtpd[24968]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
    May  9 18:31:29 gentoo postfix/smtpd[24968]: warning: unknown[86.121.62.220]: SASL LOGIN authentication failed: generic failure
    May  9 18:31:29 gentoo postfix/smtpd[24968]: > unknown[86.121.62.220]: 535 5.7.8 Error: authentication failed: generic failure
    /etc/postfix/main.cnf
    Code:
    append_at_myorigin = no
    append_dot_mydomain = no
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = //usr/lib64/postfix
    data_directory = /var/lib/postfix
    debug_peer_level = 2
    debug_peer_list = 192.168.0.4
    disable_vrfy_command = yes
    home_mailbox = Maildir/
    html_directory = /usr/share/doc/postfix-2.6.5/html
    inet_protocols = all
    local_recipient_maps = $alias_maps, $virtual_alias_maps, $virtual_mailbox_maps
    local_transport = relay:[127.0.0.1]:10024
    mail_owner = postfix
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    message_size_limit = 40960000
    mydestination = $myhostname, localhost.$mydomain, localhost
    myhostname = ns.domain.foo
    myorigin = fomain.foo
    newaliases_path = /usr/bin/newaliases
    owner_request_special = no
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps proxy:mysql:/etc/mail/vmysql/filter.cf
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.6.5/readme
    sample_directory = /etc/postfix
    sendmail_path = /usr/sbin/sendmail
    setgid_group = postdrop
    smtp_tls_cert_file = /etc/postfix/smtpd.cert
    smtp_tls_key_file = /etc/postfix/smtpd.key
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_helo_required = yes
    smtpd_recipient_restrictions = permit_mynetworks,       permit_sasl_authenticated,      reject_rbl_client bl.spamcop.net,       reject_rbl_client sbl.spamhaus.org,     reject_rbl_client cbl.abuseat.org,      reject_unknown_sender_domain,reject_unknown_recipient_domain,        reject_non_fqdn_hostname,       reject_non_fqdn_sender, reject_non_fqdn_recipient,      reject_unauth_destination,      reject_unauth_pipelining,       reject_invalid_hostname,        permit
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_path = smtpd
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    strict_rfc821_envelopes = yes
    tls_random_source = dev:/dev/urandom
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    unknown_local_recipient_reject_code = 550
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /srv/mail/
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_limit_override = yes
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_maildir_extended = yes
    virtual_maildir_limit_message = The user you are trying to reach has exceeded their quota.
    virtual_minimum_uid = 100
    virtual_overquota_bounce = yes
    virtual_transport = maildrop
    virtual_uid_maps = static:5000
    
     
    Last edited: May 9, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    Is saslauthd running? What's the output of
    Code:
    ps aux | grep -i saslauthd
    ?
     
  3. gridorian

    gridorian New Member

    it's OK. i fixed that :D

    i actually forgot to tell postfix in master.cf to talk to sasl.
     

Share This Page