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

2005-08-11 Thread Wouter van der Schagt



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 username
OK
PASS password
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/shexec /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 
21
I'm guessing something is not passed correctly from 
vchkpw to qmail-pop3d
but i have no idea what. The output of "netstat -ap 
| grep pop3" is:

tcp 
0 0 
*:pop3 
*:* 
LISTEN 5455/tcpserver

which is, i think as it should be.

The relevant section of pstree is

svscanboot,1001 
/command/svscanboot  svscan,1004 /service 
 supervise,1006 qmail-send 
  
qmail-send,5445,qmails  
 qmail-clean,5463,qmailq 
  
qmail-lspawn,5459,root ./Maildir/ 
  
qmail-rspawn,5460,qmailr  
supervise,1007 log  
 multilog,5446,qmaill t s250 n10 /var/log/qmail 
 supervise,1014 qmail-smtpd 
  tcpserver,5450,qmaild -v 
-R -l[MYHOSTNAME] -x /etc/tcp.smtp.cdb -c 20 ... 
 supervise,1015 log 
  multilog,5452,qmaill t 
s250 n10 /var/log/qmail/smtpd 
 supervise,4332 qmail-pop3d 
  tcpserver,5455 -v -R -H -l 
0 0 110 /var/qmail/bin/qmail-popup ... 
 supervise,4333 log 
 
multilog,5457,qmaill t s250 n10 /var/log/qmail/pop3d

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 
?

- Steven




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 username
OK
PASS password
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 
21


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 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: vchkpw@inter7.com
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 username
 OK
 PASS password
 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 21
 
 
 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:


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 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 21

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 21
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 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 21

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 21
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 21

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 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