[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postfix-users
Subject:    Re: SMTP auth fails
From:       Werner <lists () mollentze ! co ! za>
Date:       2006-08-31 11:04:49
Message-ID: 44F6C251.1060201 () mollentze ! co ! za
[Download RAW message or body]

Hi,

Problem appears to be solved.

There was a setting missing in /etc/postfix/sasl/smtpd.conf

Thank you,
Werner

Werner wrote:
> Hi,
>
> I am having trouble with SMTP auth with Postfix 2.3.1-1 on Ubuntu 
> Dapper. As you will see from my config, I am using MySQL to interface 
> with Postfix Admin, a very nice tool.
>
> Any help would be greatly appreciated, as this is my first postfix 
> setup, so I am still learning a lot about postfix.
>
> Here's my postconf -n:
> ---
> append_dot_mydomain = no
> broken_sasl_auth_clients = yes
> config_directory = /etc/postfix
> inet_interfaces = all
> local_recipient_maps =
> mailbox_size_limit = 0
> mydestination =
> myhostname = localhost
> mynetworks = 127.0.0.0/8
> recipient_delimiter = +
> smtp_tls_note_starttls_offer = yes
> smtp_use_tls = yes
> smtpd_banner = $myhostname ESMTP $mail_name
> smtpd_recipient_restrictions = permit_sasl_authenticated, 
> permit_mynetworks, reject_unauth_destination
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain = $myhostname
> smtpd_sasl_security_options = noanonymous
> smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
> smtpd_tls_auth_only = no
> smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
> smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
> smtpd_tls_loglevel = 1
> smtpd_tls_received_header = yes
> smtpd_tls_session_cache_timeout = 3600s
> smtpd_use_tls = yes
> tls_random_source = dev:/dev/urandom
> virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
> virtual_gid_maps = static:108
> virtual_mailbox_base = /home/vmail
> virtual_mailbox_domains = 
> mysql:/etc/postfix/mysql_virtual_domains_maps.cf
> virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
> virtual_minimum_uid = 105
> virtual_transport = virtual
> virtual_uid_maps = static:105
> ---
>
> Here's what /var/log/mail.log says when I try to send mail:
> ---
> warning: SASL authentication failure: Password verification failed
> warning: localhost[127.0.0.1]: SASL PLAIN authentication failed: 
> authentication failure
> ---
>
> Here's my telnet EHLO output:
> ---
> 250-localhost
> 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
> ---
>
> I can successfully send a message by doing:
> ---
> telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 localhost ESMTP Postfix
> helo xxx.xxx
> 250 localhost
> mail from: xxx@xxx.xxx
> 250 2.1.0 Ok
> rcpt to: yyy@yyy.yyy
> 250 2.1.5 Ok
> data
> 354 End data with <CR><LF>.<CR><LF>
> To: yyy
> From: xxx
> Subject: This is a test
> This is test body text
> .
> 250 2.0.0 Ok: queued as DB90964052
> quit
> 221 2.0.0 Bye
> ---
>
> I would prefer testing auth with telnet (instead of trying with my 
> email client, which fails every time and takes a long time to try and 
> authenticate), but I don't know what telnet commands to use to 
> authenticate. Any help in this regard would really be appreciated.
>
> Kindest Regards,
> Werner
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic