Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Wouter van der Schagt
I noticed it also, it was a mistake, a changed the run file, and ran the
trace
the recordio log is:

 400042fb8f491ec572f4 6402 > +OK
 400042fb8f5413c04c1c 6402 < pass test
@400042fb8f541557208c tcpserver: end 6402 status 256
@400042fb8f5415573414 tcpserver: status: 0/40
@400042fb8f5415585524 6402 > [EOF]

TCPServer status 256, i think means exit, but i have no idea why.

The output from the strace is: (after the password)

send(3, "pass test\r\n", 11, 0) = 11
select(4, [0 3], [], [3], {0, 0})   = 0 (Timeout)
select(4, [0 3], [], [3], NULL) = 1 (in [3])
recv(3, "", 8137, 0)= 0
rt_sigaction(SIGTSTP, {SIG_DFL}, {0x8052290, [TSTP], SA_RESTORER|SA_RESTART,
0x401696f8}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) =
0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, FIONBIO, [0])  = 0
ioctl(1, FIONBIO, [0])  = 0
close(3)= 0
rt_sigaction(SIGTSTP, {0x8052290, [TSTP], SA_RESTORER|SA_RESTART,
0x401696f8}, {SIG_DFL}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) =
0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, FIONBIO, [1])  = 0
ioctl(1, FIONBIO, [1])  = 0
select(2, NULL, [1], NULL, NULL)= 1 (out [1])
rt_sigaction(SIGTSTP, {SIG_DFL}, {0x8052290, [TSTP], SA_RESTORER|SA_RESTART,
0x401696f8}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) =
0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, FIONBIO, [0])  = 0
ioctl(1, FIONBIO, [0])  = 0
rt_sigaction(SIGTSTP, {0x8052290, [TSTP], SA_RESTORER|SA_RESTART,
0x401696f8}, {SIG_DFL}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) =
0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, FIONBIO, [1])  = 0
ioctl(1, FIONBIO, [1])  = 0
select(2, NULL, [1], NULL, NULL)= 1 (out [1])
rt_sigaction(SIGTSTP, {SIG_DFL}, {0x8052290, [TSTP], SA_RESTORER|SA_RESTART,
0x401696f8}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) =
0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(0, FIONBIO, [0])  = 0
ioctl(1, FIONBIO, [0])  = 0
write(2, "Connection closed by foreign hos"..., 35) = 35
close(-1)   = -1 EBADF (Bad file descriptor)
munmap(0x40018000, 4096)= 0
exit_group(1)   = ?
Process 6401 detached

Any ideas ? I have no idea what to make of this output
- Steven



Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Rick Macdougall

Wouter van der Schagt wrote:


I changed /service/qmail-pop3d/run to:

#!/bin/sh
exec /usr/local/bin/softlimit -m 4000 \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   recordio \
   /usr/local/bin/recordio /var/qmail/bin/qmail-popup \
   `hostname` /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
Maildir 2&>1

And when i do "telnet localhost 110" and enter username and password
i dont see any output of recordio. I have also tried removing the 2&>1
in the end, but to no avail.

- Steven

 


Hi,

It should be something like this

#!/bin/sh
exec /usr/local/bin/softlimit -m 4000 \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /usr/local/bin/recordio /var/qmail/bin/qmail-popup \
   `hostname` /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2&>1

Ie, recordio only once.  The logs should show up in your pop3d log file, where 
ever you have that stored.

Regards,

Rick





Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Paul Theodoropoulos

At 08:31 AM 8/11/2005, you wrote:


I changed /service/qmail-pop3d/run to:

#!/bin/sh
 exec /usr/local/bin/softlimit -m 4000 \
/usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
recordio \
/usr/local/bin/recordio /var/qmail/bin/qmail-popup \
`hostname` /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
Maildir 2&>1

And when i do "telnet localhost 110" and enter username and password
i dont see any output of recordio. I have also tried removing the 2&>1
in the end, but to no avail.

- Steven


after you initially telnet to port 110, find the process ID of the 
session, then run a trace/truss on the process. that shoudl reveal 
what's failing.



Paul Theodoropoulos
http://www.anastrophe.com
http://www.smileglobal.com




Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Wouter van der Schagt
I changed /service/qmail-pop3d/run to:

#!/bin/sh
 exec /usr/local/bin/softlimit -m 4000 \
/usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
recordio \
/usr/local/bin/recordio /var/qmail/bin/qmail-popup \
`hostname` /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
Maildir 2&>1

And when i do "telnet localhost 110" and enter username and password
i dont see any output of recordio. I have also tried removing the 2&>1
in the end, but to no avail.

- Steven



Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Rick Macdougall

Wouter van der Schagt wrote:


I added a 0, making it 40mb for a softlimit, unfortunately it didn't make
a difference. Removing it completely also didnt make a difference.

I can execute other vpopmail commands, they wont return any error
message so i know the database connection is working properly.

 


Hi,

Try adding recordio before the qmail-popup and see if anything shows up 
in the logs.


Regards,

Rick

PS. Try not to top post if possible.



Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Wouter van der Schagt
I added a 0, making it 40mb for a softlimit, unfortunately it didn't make
a difference. Removing it completely also didnt make a difference.

I can execute other vpopmail commands, they wont return any error
message so i know the database connection is working properly.

- Original Message - 
From: "Rick Macdougall" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 11, 2005 5:02 PM
Subject: Re: [vchkpw] POP not working.. am at a loss


> Wouter van der Schagt wrote:
>
> >Good afternoon, I have the following problem
> >
> >I am runing Qmail + VPopmail On Debian Sarge with kernel 2.4.27
> >
> >When I do "telnet localhost 110" I get a prompt, but when I enter a
correct
> >username / password combination, i get:
> >
> >USER 
> >OK
> >PASS 
> >Connection closed by foreign host.
> >
> >When I enter a false combination, I get an error message. I have enabled
> >verbose logging in vpopmail and get all authentication attempts and can
> >see they are succesful, so im assuming vpopmail is doing its job.
> >
> >When I look at my /service/qmail-pop3d/run script:
> >#!/bin/sh
> >exec /usr/local/bin/softlimit -m 400 \
> >/usr/local/bin/tcpserver -v -R -H -l 0 0 110
/var/qmail/bin/qmail-popup \
> >`hostname` /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
Maildir 2>&1
> >
> >
> >Where i also didnt see anything wrong. I have checked permissions with my
> >production servers which are running the same installation and they all
> >appear the same.
> >
> >Both hosts.deny and hosts.allow don't contain anythning
> >
> >Any ideas what i can do to get my pop working ?
> >
> >
> Hi,
>
> For fun try removing the softlimit (or really increase it) and see what
> happens.
>
> Mine is the same as yours except I have no softlimit and I run it as
> user root, group root (-u 0 -g 0, because I have separate users for some
> domains with system quotas)
>
> Regards,
>
> Rick
>
>



Re: [vchkpw] POP not working.. am at a loss

2005-08-11 Thread Rick Macdougall

Wouter van der Schagt wrote:


Good afternoon, I have the following problem

I am runing Qmail + VPopmail On Debian Sarge with kernel 2.4.27

When I do "telnet localhost 110" I get a prompt, but when I enter a correct
username / password combination, i get:

USER 
OK
PASS 
Connection closed by foreign host.

When I enter a false combination, I get an error message. I have enabled
verbose logging in vpopmail and get all authentication attempts and can
see they are succesful, so im assuming vpopmail is doing its job.

When I look at my /service/qmail-pop3d/run script:
#!/bin/sh
exec /usr/local/bin/softlimit -m 400 \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \
   `hostname` /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 
2>&1


Where i also didnt see anything wrong. I have checked permissions with my
production servers which are running the same installation and they all
appear the same.

Both hosts.deny and hosts.allow don't contain anythning

Any ideas what i can do to get my pop working ?
 


Hi,

For fun try removing the softlimit (or really increase it) and see what 
happens.


Mine is the same as yours except I have no softlimit and I run it as 
user root, group root (-u 0 -g 0, because I have separate users for some 
domains with system quotas)


Regards,

Rick