no SASL authentication mechanisms: postfix

Discussion in 'HOWTO-Related Questions' started by aarayas, May 21, 2007.

  1. aarayas

    aarayas New Member

    I have centos 4.4 final, and try configure postfix + virtual domain

    but, not found sasl authetication in postfix

    #vi /var/log/maillog
    fatal: no SASL authentication mechanisms
    warning: process /usr/libexec/postfix/smtpd pid 31675 exit status 1

    mi configuration it's the next.

    #uname -a
    Linux 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686 i686 i386 GNU/Linux

    #cat /etc/redhat-release
    CentOS release 4.4 (Final)

    #rpm -q postfix

    # vi /usr/lib/sasl/smtpd.conf

    pwcheck_method: saslauthd
    saslauthd_version: 2

    # vi /usr/lib/sasl2/smtpd.conf

    pwcheck_method: authdaemond
    log_level: 7
    mech_list: PLAIN LOGIN

    #saslauthd -v
    saslauthd 2.1.19
    authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap

    #vi /etc/postfix

    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_sasl_application_name = smtpd
    smtpd_sasl_path = smtpd
    smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destination,reject_unauth_pipelining,reject_invalid_hostname,reject_rbl_client,reject_rbl_client,reject_rbl_client,reject_rbl_client

    smtp_use_tls = no
    smtpd_use_tls = yes
    smtpd_tls_auth_only = yes
    smtpd_tls_key_file = /usr/local/ssl/
    smtpd_tls_cert_file = /usr/local/ssl/
    smtpd_tls_session_cache_database = btree:/etc/postfix/tls_smtpd_scache
    smtpd_tls_loglevel = 3
    smtpd_tls_received_header = yes

    tranks for you help..

    and greeting for chile.
  2. jpieper

    jpieper New Member

    I have the same problem but I am using Fedora C6 and not CentOS, but I think there is no so big difference between these two systems.

    [[email protected] ~]# uname -a
    Linux vs2060074 2.6.9-023stab043.3-smp #1 SMP Thu Apr 19 10:35:07 MSD 2007 i686 i686 i386 GNU/Linux
    [[email protected] ~]# cat /etc/redhat-release
    Fedora Core release 6 (Zod)
    [[email protected] ~]# rpm -q postfix
    [[email protected] ~]# cat /usr/lib/sasl/smtpd.conf
    pwcheck_method: authdaemond
    log_level: 3
    mech_list: PLAIN LOGIN
    [[email protected] ~]# saslauthd -v
    saslauthd 2.1.22
    authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap
    [[email protected] ~]# cat /etc/postfix/
    readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
    myhostname = mail.<domain_name>.net
    mydomain = <domain_name>.net
    mynetworks =
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    transport_maps = proxy:mysql:/etc/postfix/
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $r$
    content_filter = amavis:[]:10024
    receive_override_options = no_address_mappings
    IMAP and POP3 ist working fine, but if I want to connect localhost:25 I´ll get this messages:

    [[email protected] ~]# telnet localhost 25
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.
  3. the_spy

    the_spy New Member

    may be you can try to change

    pwcheck_method: authdaemond
    pwcheck_method: saslauthd

    in smtpd.conf
  4. jpieper

    jpieper New Member

    No changes.
  5. aarayas

    aarayas New Member

    Any ideas?:confused:
    tranks again..
  6. falko

    falko Super Moderator ISPConfig Developer

  7. aarayas

    aarayas New Member


    yum install cyrus-sasl-plain

    and worked


Share This Page