Qmail-LDAP
[Top] [All Lists]

Re: SMTP auth with SSL

To: qmail-ldap@qmail-ldap.org
Subject: Re: SMTP auth with SSL
From: Manfred Langthaller <manfred.langthaller@aon.at>
Date: Tue, 13 Feb 2007 13:05:26 +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>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <45D1A51B.6030404@telbit.pt>
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
Mário Gamito schrieb:
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.

Warm Regards,
Mário Gamito


Hi!

You could use that: http://makcoder.sourceforge.net/demo/base64.php
and should try it that way:

250-mx1.manx.local
250-PIPELINING
250-DATAZ
250-STARTTLS
250-AUTH LOGIN PLAIN
250 8BITMIME
AUTH LOGIN
334 VXNlcm5hbWU6 <= Username:
am9obi5kb2U= <= john.doe@manx.local
334 UGFzc3dvcmQ6 <= Password:
eW91cnBhc3N3b3Jk <= yourpassword
235 nice to meet you
...

Regards,

Manfred




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