Re: [vchkpw] Roaming user don't work

2004-06-01 Thread X-Istence
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Franck wrote:
> 
>
> But, in var/log/message, i've this :
> vpopmail[15499]: vchkpw-smtp: vpopmail user not found
> [EMAIL PROTECTED]:81.56.xxx.xx
>
>  The login is not [EMAIL PROTECTED] ? It's only for pop before smtp ???


No, the login certainly is. It is just like loggin in to pop, except now
you are loggin into SMTP to send an email.

X-Istence
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAvSPdJukONu5DUaQRAmKeAJsFnjcTgdAqUAWjtH4mkRaqcwWqBgCeLOF9
fSn/J4I3gkZo385tOg9BdHE=
=ucOZ
-END PGP SIGNATURE-


Re: [vchkpw] Roaming user don't work

2004-06-01 Thread Tom Collins
On Jun 1, 2004, at 3:13 AM, Franck wrote:
I've take out $HOTE and i've changing permission on :
- -rw-r--r--   1 vpopmail vchkpw   39 May 11 11:07 vpopmail.mysql
Make sure you only do that during testing, and then change it back to 
640 when you're done.  Leaving that file world-readable gives anyone 
with access to your server a chance to learn the MySQL username and 
password used for your vpopmail tables.  Could be a very bad thing.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Roaming user don't work

2004-06-01 Thread Franck
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> > > that's not pop-before-smtp.  You're trying to use SMTP auth and haven't
> > > set it up properly.
> >
> > Yes, i've patch qmail with colapse.sh and with shupp's patch
> > qmail-toaster-0.6-1.patch
>
> I'm not sure what's all included in that 'toaster' patch, but my guess is:
> > qmail-smtpd $HOTE \
> > /home/vpopmail/bin/vchkpw /bin/true 2>&1
>
> you should take out the '$HOTE' there.  Be careful though, depending on
> which day of the month you grabbed the SMTP auth patch it has different
> command line requirements.

I've take out $HOTE and i've changing permission on :
- -rw-r--r--   1 vpopmail vchkpw   39 May 11 11:07 vpopmail.mysql

But, in var/log/message, i've this :
vpopmail[15499]: vchkpw-smtp: vpopmail user not found 
[EMAIL PROTECTED]:81.56.xxx.xx

The login is not [EMAIL PROTECTED] ? It's only for pop before smtp ???

++

- -- 
Franck

http://www.linuxpourtous.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAvFa71zwfep5k9qERAoPQAJ9zTOKKuwMB9BLkNEFryixH/idEBgCcDYUV
4l2zYcTnmwa4GGiZbBg64t4=
=LhnG
-END PGP SIGNATURE-



Re: [vchkpw] Roaming user don't work

2004-06-01 Thread David
On Tue, 2004-06-01 at 11:31, Franck wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> > > I've a problem with vpopmail 5.5.0 and roaming user. I've compile
> > > vpopmail like this but, i couldn't log in via pop3 before smtp.
> > >
> > > I've testing with Kmail :
> > > - smtp.my_domain.com
> > > - login : [EMAIL PROTECTED]
> > > - password : mypass
> > > - Authentification : login or cram or plain
> > >
> > > oops, unable to write pipe and I can't auth (#4.3.0)
> >
> > that's not pop-before-smtp.  You're trying to use SMTP auth and haven't set
> > it up properly.
> 
> Yes, i've patch qmail with colapse.sh and with shupp's patch 
> qmail-toaster-0.6-1.patch
> .
> > Show us your smtp run script.
> 
> #!/bin/sh
> PATHQMAIL="/var/qmail"
> 
> PATH="$PATHQMAIL/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/sbin:/usr/
> sbin:/sbin"
> QMAILQUEUE=$PATHQMAIL/bin/qmail-scanner-queue.pl
> export PATH
> export QMAILQUEUE
> 
> QMAILDUID=`id -u qmaild`
> NOFILESGID=`id -g qmaild`
> MAXSMTPD=`cat $PATHQMAIL/control/concurrencyincoming`
> LOCAL=`head -1 $PATHQMAIL/control/me`
> HOTE=my_domain.com
> SPAM="-r relays.ordb.org"
> SOFTLIMIT=3700
> 
> if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; 
> then
> echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
> echo $PATHQMAIL/supervise/smtpd/run
> exit 1
> fi
> 
> if [ ! -f $PATHQMAIL/control/rcpthosts ]; then
> echo "No $PATHQMAIL/control/rcpthosts!"
> echo "Refusing to start SMTP listener because it'll create an open 
> relay"
> exit 1
> fi
> 
> exec /usr/local/bin/softlimit -m $SOFTLIMIT \
> /usr/local/bin/tcpserver -v -p -H -R -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb \
> - -c $MAXSMTPD -u $QMAILDUID -g $NOFILESGID 0 smtp \
> rblsmtpd $SPAM \
> qmail-smtpd $HOTE \
> /home/vpopmail/bin/vchkpw /bin/true 2>&1
> 
> ++

Hi,
maybe this won't help much but I think with the SMTP auth patch your
qmail-smtpd run shouldn't contain the $HOTE before vchkpw. See if
removing it changes something.
Also maybe using recordio could shed some light on this.
I'm using Bill's patch too, here's an excerpt from my qmail-smtpd run
file:

exec /usr/local/bin/softlimit -m 1600 \
envdir /etc/relay-ctrl \
/usr/bin/relay-ctrl-chdir \
/usr/local/bin/tcpserver -v -H -R -l 0 \
-x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
 /usr/bin/recordio  /usr/local/bin/rblsmtpd -b -r sbl.spamhaus.org -r
relays.ordb.org \
  /usr/bin/relay-ctrl-check   /var/qmail/bin/qmail-smtpd \
/Appz2/VPopMail/bin/vchkpw /bin/true 2>&1




Re: [vchkpw] Roaming user don't work

2004-06-01 Thread Jeremy Kitchen
On Tuesday 01 June 2004 04:31 am, Franck wrote:
> > > I've a problem with vpopmail 5.5.0 and roaming user. I've compile
> > > vpopmail like this but, i couldn't log in via pop3 before smtp.
> > >
> > > I've testing with Kmail :
> > > - smtp.my_domain.com
> > > - login : [EMAIL PROTECTED]
> > > - password : mypass
> > > - Authentification : login or cram or plain
> > >
> > > oops, unable to write pipe and I can't auth (#4.3.0)
> >
> > that's not pop-before-smtp.  You're trying to use SMTP auth and haven't
> > set it up properly.
>
> Yes, i've patch qmail with colapse.sh and with shupp's patch
> qmail-toaster-0.6-1.patch

I'm not sure what's all included in that 'toaster' patch, but my guess is:
> qmail-smtpd $HOTE \
> /home/vpopmail/bin/vchkpw /bin/true 2>&1

you should take out the '$HOTE' there.  Be careful though, depending on which 
day of the month you grabbed the SMTP auth patch it has different command 
line requirements.

If you modify the command line, make absolutely certain you cannot simply use 
any arbitrary information to authenticate with your SMTP server or you are an 
open relay and your server WILL get abused.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] Roaming user don't work

2004-06-01 Thread Franck
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> > I've a problem with vpopmail 5.5.0 and roaming user. I've compile
> > vpopmail like this but, i couldn't log in via pop3 before smtp.
> >
> > I've testing with Kmail :
> > - smtp.my_domain.com
> > - login : [EMAIL PROTECTED]
> > - password : mypass
> > - Authentification : login or cram or plain
> >
> > oops, unable to write pipe and I can't auth (#4.3.0)
>
> that's not pop-before-smtp.  You're trying to use SMTP auth and haven't set
> it up properly.

Yes, i've patch qmail with colapse.sh and with shupp's patch 
qmail-toaster-0.6-1.patch
.
> Show us your smtp run script.

#!/bin/sh
PATHQMAIL="/var/qmail"

PATH="$PATHQMAIL/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/sbin:/usr/
sbin:/sbin"
QMAILQUEUE=$PATHQMAIL/bin/qmail-scanner-queue.pl
export PATH
export QMAILQUEUE

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat $PATHQMAIL/control/concurrencyincoming`
LOCAL=`head -1 $PATHQMAIL/control/me`
HOTE=my_domain.com
SPAM="-r relays.ordb.org"
SOFTLIMIT=3700

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; 
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo $PATHQMAIL/supervise/smtpd/run
exit 1
fi

if [ ! -f $PATHQMAIL/control/rcpthosts ]; then
echo "No $PATHQMAIL/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open 
relay"
exit 1
fi

exec /usr/local/bin/softlimit -m $SOFTLIMIT \
/usr/local/bin/tcpserver -v -p -H -R -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb \
- -c $MAXSMTPD -u $QMAILDUID -g $NOFILESGID 0 smtp \
rblsmtpd $SPAM \
qmail-smtpd $HOTE \
/home/vpopmail/bin/vchkpw /bin/true 2>&1

++
- -- 
Franck

http://www.linuxpourtous.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAvEzU1zwfep5k9qERAi0QAKC+vwo3Qe2te7ummDSBXOVTfKsE+wCgmuea
IbYhe2P61rsTeZQp9X0XAmU=
=IsLN
-END PGP SIGNATURE-



Re: [vchkpw] Roaming user don't work

2004-06-01 Thread Jeremy Kitchen
On Tuesday 01 June 2004 04:07 am, Franck wrote:
> Hello,
>
> I've a problem with vpopmail 5.5.0 and roaming user. I've compile vpopmail
> like this but, i couldn't log in via pop3 before smtp.
>
> I've testing with Kmail :
> - smtp.my_domain.com
> - login : [EMAIL PROTECTED]
> - password : mypass
> - Authentification : login or cram or plain
>
> oops, unable to write pipe and I can't auth (#4.3.0)

that's not pop-before-smtp.  You're trying to use SMTP auth and haven't set it 
up properly.

Show us your smtp run script.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



[vchkpw] Roaming user don't work

2004-06-01 Thread Franck
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I've a problem with vpopmail 5.5.0 and roaming user. I've compile vpopmail 
like this but, i couldn't log in via pop3 before smtp.

I've testing with Kmail :
- - smtp.my_domain.com
- - login : [EMAIL PROTECTED]
- - password : mypass
- - Authentification : login or cram or plain

oops, unable to write pipe and I can't auth (#4.3.0) 

./configure \
- --prefix=/home/vpopmail \
- --enable-qmail-newu=/var/qmail/bin/qmail-newu \
- --enable-vpopuser=vpopmail \
- --enable-vpopgroup=vchkpw \
- --enable-roaming-users \
- --enable-relay-clear-minutes=90 \
- --enable-sqwebmail-pass \
- --enable-qmail-ext \
- --enable-ip-alias-domains \
- --enable-domainquotas \
- --enable-auth-module=mysql \
- --enable-logging=p \
- --enable-auth-logging \
- --enable-mysql-logging \
- --enable-libdir=/usr/include/mysql \
- --enable-valias \
- --enable-mysql-logging \
- --enable-clear-passwd \
- --enable-mysql-limits \
- --enable-tcprules-prog=/usr/local/bin/tcprules \
- --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp

make
make install-strip

Regards
- -- 
Franck

http://www.linuxpourtous.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAvEdM1zwfep5k9qERAny7AKCyQkuTEj8DAJdXo0umwcD4nL7rHACcDLa2
QI+ZxjRg3m4h8si1t3l7tXM=
=cU3A
-END PGP SIGNATURE-