RE: POP Authentication Not Working

2001-05-14 Thread Chris Bolt
Try copying /var/qmail/control/me to /var/qmail/control/defaultdomain but I
don't think that will fix it... is myhost.mydom.or.jp supposed to be valid?
Also, have you tried turning on all vpopmail logging options?

 Please post the output of /var/qmail/bin/qmail-showctl, that'll help
 me find your problem.

 Thanks. I didn't know about that command.
 Its a little long, but here it is:
(clipped)


Re: POP Authentication Not Working

2001-05-12 Thread lists
- Original Message -
From: "Chris Bolt" [EMAIL PROTECTED]
To: "GIC MLs" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 6:09 AM
Subject: RE: POP Authentication Not Working

 My oh my... you run tcpserver with a shell script that runs tcpserver
 (again) and calls itself instead of qmail-pop3d. You also have a lot of
 redundance by including the full paths to binaries when they're in your
 path. Try putting this in /usr/local/qmail/bin/qmail-pop3d-new:

 env - PATH="/var/qmail/bin:/usr/local/bin" \
 tcpserver 0 pop3 qmail-popup mydom.co.jp \
 /home/vpopmail/bin/vchkpw qmail-pop3d Maildir 

 Then just run qmail-pop3d-new

Thanks for the help.
In the last day I have totally overhauled the installation and I now have a
much "cleaner" installation.
I totally cleaned up the qmail install and tried to proceed with vpopmail
again, but am not getting any mail.
The system was originally using /home system accounts for all users, with
the Mailbox mailbox format.
I used the script at http://www.qmail.org/convert-and-create to convert the
mailboxes to Maildir format,
and have the Maildir directories set up in
/usr/local/vopmail/domains/mydom/usr/Maildir .

Now when I send a mail to the user, instead of going into that Maildir, a
Maildir is created in the user's /home directory and the mail is delivered
there. My /var/qmail/control/defaultdelivery file contains ./Maildir .
Should I change that to the full path to the Maildir under the
vpopmail/domains/usr directory, or... ?

Another problem is that I am seeing vchkpw: password fail in
/var/log/maillog as users try to check their mail.
I do not get this when I am checking the test account I set up manually
using vpasswd, but accounts which I attemtped to convert passwords for using
the vconvert program ( vconvert -c -e domain ) are failing. Does this
require mysql support? I'm not sure I specified mysql support when
installing vpopmail... anything I can do to verify whether I need it or not
and whether or not it is actually working or if I should reinstall?

Thanks for all of the help so far.

Shawn


RE: POP Authentication Not Working

2001-05-12 Thread Chris Bolt
 Thanks for the help.
 In the last day I have totally overhauled the installation and I
 now have a
 much "cleaner" installation.
 I totally cleaned up the qmail install and tried to proceed with vpopmail
 again, but am not getting any mail.
 The system was originally using /home system accounts for all users, with
 the Mailbox mailbox format.
 I used the script at http://www.qmail.org/convert-and-create to
 convert the
 mailboxes to Maildir format,
 and have the Maildir directories set up in
 /usr/local/vopmail/domains/mydom/usr/Maildir .

 Now when I send a mail to the user, instead of going into that Maildir, a
 Maildir is created in the user's /home directory and the mail is delivered
 there. My /var/qmail/control/defaultdelivery file contains ./Maildir .
 Should I change that to the full path to the Maildir under the
 vpopmail/domains/usr directory, or... ?

Your defaultdelivery file must end in a slash for qmail to know that it is a
Maildir. Try changing it to ./Maildir/

 Another problem is that I am seeing vchkpw: password fail in
 /var/log/maillog as users try to check their mail.
 I do not get this when I am checking the test account I set up manually
 using vpasswd, but accounts which I attemtped to convert
 passwords for using
 the vconvert program ( vconvert -c -e domain ) are failing. Does this
 require mysql support? I'm not sure I specified mysql support when
 installing vpopmail... anything I can do to verify whether I need
 it or not
 and whether or not it is actually working or if I should reinstall?

You are using vconvert incorrectly. The first parameter is what to convert
from, and the second is what to convert to. You are trying to convert from
cdb to etc format, when you want to do the opposite. You should also try
adding the -d parameter for some extra info.

Have you tried using qmail-pw2u
(http://www.qmail.org/man/man8/qmail-pw2u.html)?

 Thanks for all of the help so far.

 Shawn


Re: POP Authentication Not Working

2001-05-12 Thread lists

- Original Message -
From: "Chris Bolt" [EMAIL PROTECTED]
To: "lists" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, May 13, 2001 5:53 AM
Subject: RE: POP Authentication Not Working


  I used the script at http://www.qmail.org/convert-and-create to
  convert the
  mailboxes to Maildir format,
  and have the Maildir directories set up in
  /usr/local/vopmail/domains/mydom/usr/Maildir .
 
  Now when I send a mail to the user, instead of going into that Maildir,
a
  Maildir is created in the user's /home directory and the mail is
delivered
  there. My /var/qmail/control/defaultdelivery file contains ./Maildir .
  Should I change that to the full path to the Maildir under the
  vpopmail/domains/usr directory, or... ?

 Your defaultdelivery file must end in a slash for qmail to know that it is
a
 Maildir. Try changing it to ./Maildir/

I tried this, but there seems to be no change. Mail is still delivered to
/home/usr/Maildir/ instead of to the Maildir in the vpopmail structure.
If Maildir/ does not exist in /home/usr/, it gets created.
Does defaultdelivery specify the _type_ of mailbox format to use, or does it
specify the location?

 You are using vconvert incorrectly. The first parameter is what to convert
 from, and the second is what to convert to. You are trying to convert from
 cdb to etc format, when you want to do the opposite. You should also try
 adding the -d parameter for some extra info.

I was confused when I wrote the previous message. Looking back to check, I
see that I did actually use the correct parameters.
Sorry about that.

 Have you tried using qmail-pw2u
 (http://www.qmail.org/man/man8/qmail-pw2u.html)?

Not yet. I am not really sure what it does.
The page says: qmail-pw2u - build address assignments from a passwd file
I'm not sure what 'address assignments' refers to, or how it relates to
vpopmail authentication.

Thank you,

Shawn


RE: POP Authentication Not Working

2001-05-12 Thread Chris Bolt
 I tried this, but there seems to be no change. Mail is still delivered to
 /home/usr/Maildir/ instead of to the Maildir in the vpopmail structure.
 If Maildir/ does not exist in /home/usr/, it gets created.
 Does defaultdelivery specify the _type_ of mailbox format to use,
 or does it specify the location?

Both; the format that the location is in specifies the type. See
http://www.qmail.org/man/man5/dot-qmail.html points 4 and 5.

Please post the output of /var/qmail/bin/qmail-showctl, that'll help me find
your problem.

  Have you tried using qmail-pw2u
  (http://www.qmail.org/man/man8/qmail-pw2u.html)?

 Not yet. I am not really sure what it does.
 The page says: qmail-pw2u - build address assignments from a passwd file
 I'm not sure what 'address assignments' refers to, or how it relates to
 vpopmail authentication.

Forgive me, you were right. vconvert is what you want to use.


RE: POP Authentication Not Working

2001-05-10 Thread Chris Bolt
 Anyway, I searched and poked and grepped and looked through Running Qmail,
 but I could not find a startup script anywhere that starts the tcpserver
 line above. I don't know where it is coming from. I went ahead and made a
 note of the command, then created a new script:

 # ls -l /usr/local/qmail/bin/qmail-pop3d-new
 -rwxr-xr-x  1 root  qmail  174 May 10 14:12
 /usr/local/qmail/bin/qmail-pop3d-new*

 with contents:

 env - PATH="/var/qmail/bin:/usr/local/bin" \
 tcpserver 0 pop3 /var/qmail/bin/qmail-popup mydom.co.jp \
 /home/vpopmail/bin/vchkpw /usr/local/qmail/bin/qmail-pop3d-new Maildir 

 I then killed the original tcpserver process and executed this instead:

 # /usr/local/bin/tcpserver -v 0 pop3
 /usr/local/qmail/bin/qmail-pop3d-new 

My oh my... you run tcpserver with a shell script that runs tcpserver
(again) and calls itself instead of qmail-pop3d. You also have a lot of
redundance by including the full paths to binaries when they're in your
path. Try putting this in /usr/local/qmail/bin/qmail-pop3d-new:

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver 0 pop3 qmail-popup mydom.co.jp \
/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 

Then just run qmail-pop3d-new


Re: POP Authentication Not Working

2001-05-09 Thread GIC MLs

- Original Message -
From: "GIC MLs" [EMAIL PROTECTED]
To: "Chris Bolt" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 4:05 PM
Subject: Re: POP Authentication Not Working


Why aren't you using qmail-pop3d?
  
   Wasn't aware that I should be.
 
  You should :-) Perhaps the README should be clearer about this. Disable
 QPOP
  and run qmail-pop3d, here's a qmail-pop3d startup script from
  http://www.inter7.com/vpopmail/FAQ :
 
  env - PATH="/var/qmail/bin:/usr/local/bin" \
  tcpserver 0 pop3 /var/qmail/bin/qmail-popup your.host.here \
  /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 

After doing some reading and poking around, I am still wondering whether
QPOP is the popper line in /etc/inetd.conf.
If so, this was originally disabled.

Does this help?

%ps waux | grep qmail
qmails 200  0.0  0.2   924  296 con- S26Feb01   0:48.67 qmail-send
qmaild 201  0.0  0.1   880  140 con- S26Feb01   0:06.25
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 201 -g 201 0 sm
root   202  0.0  0.2   864  212 con- S26Feb01   0:09.93
/usr/local/qmail/bin/splogger smtpd 4
root   203  0.0  0.1   880  132 con- S26Feb01   0:21.06
/usr/local/bin/tcpserver -v 0 pop3 /usr/local/qmail/bin/pop5smtp /u
qmaill 212  0.0  0.2   864  232 con- S26Feb01   0:21.39 splogger
qmail
root   213  0.0  0.1   864  148 con- S26Feb01   0:08.70 qmail-lspawn
./Mailbox
qmailr 214  0.0  0.2   868  208 con- I26Feb01   0:03.71 qmail-rspawn
qmailq 215  0.0  0.1   852  180 con- S26Feb01   0:08.45 qmail-clean

It looks like tcpserver is controlling pop5smtp as pop3... Is that what I
should be looking at?
How does the above qmail-pop3d script relate to this?

Thanks,

Shawn


RE: POP Authentication Not Working

2001-05-09 Thread Chris Bolt
 root   203  0.0  0.1   880  132 con- S26Feb01   0:21.06
 /usr/local/bin/tcpserver -v 0 pop3 /usr/local/qmail/bin/pop5smtp /u
...
 It looks like tcpserver is controlling pop5smtp as pop3... Is that what I
 should be looking at?
 How does the above qmail-pop3d script relate to this?

I've never heard of pop5smtp before. You should be using qmail-pop3d
instead. Just replace the line in your init scripts that launches pop5smtp
with the line that I gave you. Then either reboot or kill process 203 then
run the line with qmail-pop3d.


Re: POP Authentication Not Working

2001-05-09 Thread GIC MLs
Thanks for the help so far.

I am still struggling to get this.

Original tcpserver pop3d line:
# ps x | grep qmail
root /usr/local/bin/tcpserver -v 0 pop3 /usr/local/qmail/bin/pop5smtp
/usr/local/libexec/popper

 I've never heard of pop5smtp before. You should be using qmail-pop3d
 instead. Just replace the line in your init scripts that launches pop5smtp
 with the line that I gave you. Then either reboot or kill process 203 then
 run the line with qmail-pop3d.

I looked up pop5smtp and discovered that it is a Japanese pop-before-smtp
program. (Homepage at: http://www.mimori.org/~h/pop5smtp/ for the curious)
This is not surprising since the former admin here was Japanese.

Anyway, I searched and poked and grepped and looked through Running Qmail,
but I could not find a startup script anywhere that starts the tcpserver
line above. I don't know where it is coming from. I went ahead and made a
note of the command, then created a new script:

# ls -l /usr/local/qmail/bin/qmail-pop3d-new
-rwxr-xr-x  1 root  qmail  174 May 10 14:12
/usr/local/qmail/bin/qmail-pop3d-new*

with contents:

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver 0 pop3 /var/qmail/bin/qmail-popup mydom.co.jp \
/home/vpopmail/bin/vchkpw /usr/local/qmail/bin/qmail-pop3d-new Maildir 

I then killed the original tcpserver process and executed this instead:

# /usr/local/bin/tcpserver -v 0 pop3 /usr/local/qmail/bin/qmail-pop3d-new 

After that, I tried: telnet localhost 110, but got a Connection closed by
foreign host.
At this point, I also started getting tcpserver output on the console:

tcpserver: status: 1/40
tcpserver: pid 68810 from 127.0.0.1
tcpserver: ok 68810 localhost.mydom.co.jp:127.0.0.1:110
localhost.mydom.co.jp:127.0.0.1::2919
tcpserver: status: 2/40
tcpserver: pid 68811 from 210.175.32.120
tcpserver: ok 68811 warabi.mydom.co.jp:210.172.82.227:110
:210.175.32.120::63876
tcpserver: end 68811 status 0
tcpserver: status: 1/40
tcpserver: end 68810 status 0
tcpserver: status: 0/40

It obviously wasn't working the way I wanted, so I killed the new tcpserver
process and executed the old one to restore things.
However, I still get the above tcpserver output on the console... :-(

Anyone know what is going wrong here?

Thanks,

Shawn