Re: [vchkpw] reg::: smtp auth (?)

2003-10-30 Thread Paolo Losi
[EMAIL PROTECTED] wrote:
my sample smpt/run file as follows ..
still not authentiating...
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 800 \
/usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw 2>&1
I think here you miss vchkpw argument (/bin/true):

try:
 exec /usr/local/bin/softlimit -m 800 \
 /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
 -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd \
  /home/vpopmail/bin/vchkpw /bin/true 2>&1
^
check for the real path of true command
(in *BSD system is usually /usr/bin/true).
Let me know if it works...

Ciao
Paolo



RE: [vchkpw] reg:: smtp auth (?)

2003-10-30 Thread Shane Chrisp
Im not sure, but I would think that the smtpd would need to run as the
vpopmail user to be able to auth. Someone else may tell me im wrong,
but that's my guess. I don't use smtp auth here.

Shane

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, 30 October 2003 7:50 PM
>To: [EMAIL PROTECTED]
>Subject: [vchkpw] reg:: smtp auth (?)
>
>
>Hi all,
>
>I had pached the qmail with new SPAM CONTROL and trying smtp 
>authentication
>I had installed cmd5chkpasswd also ..
>
>Now i need to try it whether it is working or not .. 
>for that i tried .. 
>
>>>telnet localhost 25
>>>ehlo
>250-domain.com
>250-PIPELINING
>250-8BITMIME
>250 SIZE 0
>250-AUTH LOGIN PLAIN MD5-
>>>Auth login
>334 VXNlcm5hbWU6
>>girish
>>girish
>5xx Invalid user $#22 (5.x.x)
>
>
>
>my qmail-smtpd/run is as follows
>#!/bin/sh
># qmail-smtpd startup with SMTP Authentication
>QMAILDUID=`id -u qmaild`
>QMAILDGID=`id -g qmaild`
>export MFDNSCHECK=""
># export HELODNSCHECK=""
>MAXCONCURRENCY=`head -1 /var/qmail/control/concurrencyincoming`
>HOSTNAME=`hostname`
>exec softlimit -m 200 \
>tcpserver -vR -l $HOSTNAME -c $MAXCONCURRENCY \
> -u $QMAILDUID -g $QMAILDGID 0 smtp \
>   /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw 
>/usr/bin/true 2>&1
>
>
>I had tried with cmd5chkpasswd and vpopmail also .
>where i had gone wrong .. ?
>How can i check this auth. working properly or not on this same system?
>( i don't have a sepereate system to check it from outlook or so )
>
>
>regards
>Gir'H
>
>
>
>
>