Hello. I'm running Ubuntu 7.04 (Feisty Fawn) Server Edition as a mail server with Postifix 2.3.8 and i'm trying to setup SASL in Postifx for smtp authentication (authenticate system users, using pam mechanism in sasl). After a while i could find some decent howtos about configuring sasl. I followed this two (ommiting the initial setup of postfix becuase i have that running already): http://www.jimmy.co.at/weblog/?p=52 https://help.ubuntu.com/7.04/server/C/postfix.html
I think i have correctly configured the saslauth deamon, at least that's what testsaslauthd says: testsaslauthd -u pruebarelay -p 1234 -f /var/spool/postfix/var/run/saslauthd/mux 0: OK "Success." The problem comes when i try to test AUTH PLAIN through telnet (using the base64 encode of the username and password showed above). This is what i get: $telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.mydomain.com ESMTP Postfix (Ubuntu) EHLO localhost 250-mail.mydomain.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN AUTH PLAIN AHBydWViYXJlbGF5CjM0 535 5.7.0 Error: authentication failed: bad protocol / cancel This is what postfix's log file says: Sep 11 10:00:03 mailserver postfix/smtpd[4008]: connect from localhost[127.0.0.1] Sep 11 10:00:26 mailserver postfix/smtpd[4008]: warning: SASL authentication failure: Can only find author/en (no password) Sep 11 10:00:26 mailserver postfix/smtpd[4008]: warning: localhost[127.0.0.1]: SASL PLAIN authentication failed: bad protocol / cancel This is the output of postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases always_bcc = [EMAIL PROTECTED] append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 home_mailbox = Maildir/ inet_interfaces = all mailbox_size_limit = 0 mydestination = mydomain.com, mailserver, localhost.localdomain, localhost myhostname = mail.mydomain.com mynetworks = 127.0.0.0/8, 192.168.1.0/24 myorigin = /etc/mailname receive_override_options = no_address_mappings recipient_bcc_maps = hash:/etc/postfix/recipient_bcc recipient_delimiter = + relayhost = sender_bcc_maps = hash:/etc/postfix/sender_bcc smtp_tls_note_starttls_offer = yes smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtp_use_tls = yes smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom I spent the whole day tearing my hair off on this issue but i can't seem to find any solution. Any help is greatly appreciated. Thanks. Diego.