Postfix + sasl problem

Discussion in 'Installation/Configuration' started by nexon, Dec 31, 2007.

  1. nexon

    nexon New Member

    Based on falko's Postfix + Mysql Tutorial for Centos 5.1 (http://www.howtoforge.com/virtual-users-and-domains-postfix-courier-mysql-centos5.1) I was having good progress up until I had to test the SMTP server, here is where the problem starts. When I try to connect to SMTP server it fails (not firewall) and I can't seem to figure it out :(

    Trying to connect to SMTP automatically results in a refused connection (not firewall).
    Code:
    [root@guinness postfix]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.
    [root@guinness postfix]#
    When I look at /var/log/maillog I get this:
    Code:
    [root@guinness postfix]# cat /var/log/maillog
    
    Dec 31 03:31:04 guinness postfix/smtpd[3483]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
    Dec 31 03:31:04 guinness postfix/smtpd[3483]: fatal: no SASL authentication mechanisms
    Dec 31 03:31:05 guinness postfix/master[14238]: warning: process /usr/libexec/postfix/smtpd pid 3483 exit status 1
    Dec 31 03:31:05 guinness postfix/master[14238]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    [root@guinness postfix]#
    Here is my /usr/lib/sasl2/smtpd.conf file:
    Code:
    [root@guinness postfix]# cat /usr/lib/sasl2/smtpd.conf
    pwcheck_method: authdaemond
    log_level: 3
    mech_list: PLAIN LOGIN
    authdaemond_path:/var/spool/authdaemon/socket
    [root@guinness postfix]#
    
    And finally here is my postfix /etc/postfix/main.cf contents:
    Code:
    [root@guinness postfix]# postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    html_directory = no
    inet_interfaces = all
    mail_owner = postfix
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = guinness.tylerc.org, localhost, localhost.localdomain
    myhostname = guinness.tylerc.org
    mynetworks = 127.0.0.0/8
    newaliases_path = /usr/bin/newaliases.postfix
    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
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    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_create_maildirsize = yes
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    virtual_uid_maps = static:5000
    [root@guinness postfix]#
    -Tyler
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    uname -a
    ?
     

Share This Page