Entelin wrote:
On Fri, 2004-08-13 at 07:18, Fabio Gomes wrote:

Entelin wrote:

On Thu, 2004-08-12 at 07:55, Fabio Gomes wrote:


Entelin wrote:


ehlo
250-mx0.hasslefreemail.com
250-PIPELINING
250-DATAZ
250-AUTH LOGIN PLAIN
250 8BITMIME
AUTH PLAIN (mimencoded pass)
535 authentication failure

for some reason smtp-auth always fails, tested over telnet like here,
and various progs. pop3 auth works fine, ive been looking all over for
more doc's regarding its functionality in qmail-ldap. I am using the
/var/qmail/boot service scripts unmodified, my qmail-smtpd.rules looks
like this.

127.0.0.1:allow,RELAYCLIENT="",SMTPAUTH="",NOPBS=""
:allow,SMTPAUTH="",RCPTCHECK="",REJECTEXEC="",NOPBS=""

Is there anything else that needs to be done to
get it to work?


Have you tried AUTH LOGIN?



yes, it doesnt work either.



Show me your /service/qmail-smtpd/run file.


#!/bin/sh
exec 2>&1
#
# SMTP service
#
QMAIL="/var/qmail"
ME="`head -1 $QMAIL/control/me`"
CONCURRENCY=${CONCURRENCY:=50}
PATH="$QMAIL/bin:$PATH"
# source the environemt in ./env
eval `env - PATH=$PATH envdir ./env awk '\
BEGIN { for (i in ENVIRON) \
if (i != "PATH") { \
printf "export %s=\"%s\"\\n", i, ENVIRON[i] \
} \
}'`
# enforce some sane defaults
USER=${USER:="qmaild"}
PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbscheck"}
if [ X${NOPBS+"true"} = X"true" ]; then
unset PBSTOOL
fi
exec \
envuidgid $USER \
tcpserver -v -URl $ME -x$QMAIL/control/qmail-smtpd.cdb \
${CONCURRENCY:+"-c$CONCURRENCY"} ${BACKLOG:+"-b$BACKLOG"} 0
smtp \
$PBSTOOL \
$QMAIL/bin/qmail-smtpd
thanks for the help :)




try this:

        $PBSTOOL \
        $QMAIL/bin/qmail-smtpd \
        $QMAIL/bin/auth_smtp /usr/bin/true 2>&1


Restart the qmail-smtpd after.


hmm tried it and it dident do anything different, I have annother system
thats configured about the same way, and it works :/  it was on an older
version so I tried that version on this system and that dident fix
anything either.. pop3 authentication works fine however.



hmm... Im intrigued with this line:

>>>>>AUTH PLAIN (mimencoded pass)

That line should be:

AUTH PLAIN (mime([NULL]username[NULL]pass))

I'm attaching a small perl script to build this string. Try to paste this string in the auth plain command. You need to install MIME::Base64 module. (http://search.cpan.org)

Otherwise, try to raise your loglevel. I hope you compiled your installation with -DDEBUG.

Include those lines in the beginning of your qmail-smtpd run file:

LOGLEVEL=259
export LOGLEVEL

Try to authenticate again and check the qmail-smtpd logs.

I hope you find out what is wrong,

Fabio Gomes

--
----------------------------------------------------------------------
F�bio Gomes                                <[EMAIL PROTECTED]>
DTI Desenvolvimento                      <[EMAIL PROTECTED]>
Telefone:                                      11-3243-3400 ramal 4447
Visite:                  http://sefaznet.sede.fazenda.sp.gov.br/email/
----------------------------------------------------------------------
#!/usr/bin/perl

use MIME::Base64;

print "User: ";
$user = <STDIN>;
chomp $user;
print "Pass: ";
$pass = <STDIN>;
chomp $pass;

$encoded = encode_base64("\0$user\0$pass");

print "AUTH PLAIN STRING: $encoded\n";

Reply via email to