Yeah! It's done, but not working... See what I did..

#!/bin/sh

PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH

case "$1" in
start)
echo -n "Starting qmail..."
echo
/bin/csh -cf '/var/qmail/rc &'
tcpserver -c 200 0 110 /var/qmail/bin/qmail-popup \
 server.domain.com.br /home/vpopmail/bin/vchkpw \
 /var/qmail/bin/qmail-pop3d Maildir &

tcpserver -c 200 -p -x /home/vpopmail/etc/tcp.smtp.cdb -u1026 -g1005 0 25 \
/var/qmail/bin/qmail-smtpd &
;;
stop)
echo -n "Stopping qmail..."
echo
killall qmail-send
killall tcpserver
;;
restart)
$0 stop
$0 start
;;
*)
echo -n "Usage: $0 {start|stop|restart}"
echo
exit 1
esac
exit 0

And what is happening... I'm trying to authenticate a vpop user, created in
a virtualdomain.... 

su-2.03# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.domain.com.br.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user [EMAIL PROTECTED]
+OK
pass teste
Connection closed by foreign host.
su-2.03#

[]s

Daniel

-----Mensagem original-----
De: David Gartner [mailto:[EMAIL PROTECTED]]
Enviada em: Terça-feira, 24 de Julho de 2001 17:07
Para: Daniel Abad
Cc: [EMAIL PROTECTED]
Assunto: Re: RES: RES: Telnet fail!


Daniel,

Well.... here's what I have and it works.  You should also make sure that
the
directory vpop is in is owned to the vpopmail user and group you created.

This (of course) has to be executable.  You start by doing: ./filename start
You stop by: ./filename stop

You'll have to edit this as needed.

#!/bin/sh
export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/var/qmail/bin"
/etc/rc.d/init.d/functions
[ -f /var/qmail/bin/qmail-start ] || exit 0
case "$1" in
start)
echo -n "Starting qmail..."
echo
/bin/csh -cf '/var/qmail/rc &'
tcpserver -c 200 0 110 /var/qmail/bin/qmail-popup mail.domain.net
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
tcpserver -c 200 -p -x /home/vpopmail/etc/tcp.smtp.cdb -u100 -g501 0 25
/var/qmail/bin/qmail-smtpd &
;;
stop)
echo -n "Stopping qmail..."
echo
killall qmail-send
killall tcpserver
;;
restart)
$0 stop
$0 start
;;
*)
echo -n "Usage: $0 {start|stop|restart}"
echo
exit 1
esac
exit 0

Hope this helps. Good luck!

David

Daniel Abad wrote:

> No... not yet.
>
> Startup file:
> exec /usr/local/bin/softlimit -m 2000000 \
>         /usr/local/bin/tcpserver -v -R -H -l 0 0 110
> /var/qmail/bin/qmail-popup \
>     brparcunix02.cidadeinternet.com.br /home/vpopmail/bin/vchkpw
> /var/qmail/bin/qmail-pop3d Maildir 2>&1
>
> Result:
> su-2.03# telnet localhost 110
> Trying 127.0.0.1...
> tcpserver: status: 1/40
> Connected to localhost.domain.com.br.
> Escape character is '^]'.
> tcpserver: pid 75967 from 127.0.0.1
> tcpserver: ok 75967 0:127.0.0.1:110 :127.0.0.1::1076
> +OK <[EMAIL PROTECTED]>
> user [EMAIL PROTECTED]
> +OK
> pass teste
> tcpserver: end 75967 status 256
> tcpserver: status: 0/40
> Connection closed by foreign host.
>
> -----Mensagem original-----
> De: David Gartner [mailto:[EMAIL PROTECTED]]
> Enviada em: Terça-feira, 24 de Julho de 2001 16:49
> Para: Daniel Abad
> Cc: [EMAIL PROTECTED]
> Assunto: Re: RES: Telnet fail!
>
> Daniel,
>
> Yeah, that's the problem.
>
> Change "/bin/checkpasswd" to "/path/to/vpopmail/bin/vchkpw" and restart
> qmail and give it another try.
>
> David
>
> Daniel Abad wrote:
>
> > Here,
> >
> > Take a look at the qmail startup.
> >
> > #!/bin/sh
> >
> > /usr/local/bin/tcpserver -x/etc/tcp.smtp.cdb -u1026 -g1005 0 25
> > /var/qmail/bin/qmail -smtpd &
> >
> > exec /usr/local/bin/softlimit -m 2000000 \
> >         /usr/local/bin/tcpserver -v -R -H -l 0 0 110
> > /var/qmail/bin/qmail-popup \
> >     server.domain.com.br /bin/checkpassword /var/qmail/bin/qmail-pop3d
> >  Maildir 2>&1
> >
> > exec env - PATH="/var/qmail/bin:$PATH" \
> > /var/qmail/bin/qmail-start ./Maildir/ splogger qmail
> >
> > (PS.I know that server.domain is my machine!)
> >
> > tks.
> >
> > Daniel
> >
> > -----Mensagem original-----
> > De: David Gartner [mailto:[EMAIL PROTECTED]]
> > Enviada em: Terça-feira, 24 de Julho de 2001 16:41
> > Para: Daniel Abad
> > Cc: [EMAIL PROTECTED]
> > Assunto: Re: Telnet fail!
> >
> > Daniel,
> >
> > Something I would check would be the script you call qmail with.  If you
> > were using standalone qmail before, you might have it using something
> > other than vhckpw for the password authentication.  *shrug*  Just a
> > thought.
> >
> > David
> >
> > Daniel Abad wrote:
> >
> > > Hi folks,
> > >
> > > I have a problem... I made all the installation as the documentation.
> > > Now when I try to telnet localhost 110, a fail happens.
> > >
> > > I'm using tcpserver with qmail + vpopmail...
> > >
> > > su-2.03# telnet localhost 110
> > > Trying 127.0.0.1...
> > > Connected to localhost.cidadeinternet.com.br.
> > > Escape character is '^]'.
> > > +OK <[EMAIL PROTECTED]>
> > > user [EMAIL PROTECTED]
> > > +OK
> > > pass teste
> > > -ERR authorization failed
> > > Connection closed by foreign host.
> > >
> > > What should I do??
> > >
> > > Tks.
> > >
> > > Daniel

Reply via email to