Qmail-LDAP
[Top] [All Lists]

Re: SMTP auth with SSL

To: qmail-ldap@qmail-ldap.org
Subject: Re: SMTP auth with SSL
From: Claudio Jeker <jeker@n-r-g.com>
Date: Tue, 13 Feb 2007 13:09:56 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <45D1A51B.6030404@telbit.pt>
Mail-followup-to: Claudio Jeker <jeker@n-r-g.com>, qmail-ldap@qmail-ldap.org
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <45D1A51B.6030404@telbit.pt>
User-agent: Mutt/1.5.12-2006-07-14
On Tue, Feb 13, 2007 at 11:46:35AM +0000, Mário Gamito wrote:
> Hi,
> 
> I've compiled qmail-ldap with SMTP AUTH and SSL.
> 
> I also made the certificate which is in /var/qmail/control
> 
> Now, i have a mail account with the password secret.
> 
> I ran:
> $ perl -MMIME::Base64 -e 'print 
> encode_base64("\000gamito\@mail2.telbit.pt\000secret")'
> 
> Result was:
> AGdhbWl0b0BtYWlsMi50ZWxiaXQucHQAc2VjcmV0
> 
> Now i telnet to the server and get this error:
> [root@mail2 qmail]# telnet mail2.telbit.pt 25
> Trying 192.168.84.128...
> Connected to mail2.telbit.pt (192.168.84.128).
> Escape character is '^]'.
> 220 mail2.telbit.pt ESMTP
> EHLO mail2.telbit.pt
> 250-mail2.telbit.pt
> 250-PIPELINING
> 250-AUTH LOGIN PLAIN
> 250 8BITMIME
> AUTH LOGIN PLAIN AGdhbWl0b0BtYWlsMi50ZWxiaXQucHQAc2VjcmV0
> 334 UGFzc3dvcmQ6
> MAIL FROM: gamito@mail2.telbit.pt
> 501 authentication exchange failed
> 
> 
> What's missing here ?
> 
> What is the password or how to set it ?
> Isn't it the mail's account pass ?
> 
> Any help would be appreciated.
> 

UGFzc3dvcmQ6 is base64 for Password: so you're encoding is wrong. Don't
ask me what needs to be changed in your example as I don't have the SMTP
AUTH spec handy.

-- 
:wq Claudio

<Prev in Thread] Current Thread [Next in Thread>