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-14 Thread lists
- Original Message -
From: "Chris Bolt" <[EMAIL PROTECTED]>
To: "lists" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, May 13, 2001 3:12 PM
Subject: RE: POP Authentication Not Working


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

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 200, 201, 202, 0, 203, 204, 205, 206.
group ids: 81, 200.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is myhost.mydom.or.jp.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is .

defaulthost: (Default.) Default host name is myhost.nca.or.jp.

doublebouncehost: (Default.) 2B recipient host: myhost.mydom.or.jp.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is myhost.mydom.or.jp.

helohost: (Default.) SMTP client HELO host name is myhost.mydom.or.jp.

idhost: (Default.) Message-ID host name is myhost.mydom.or.jp.

localiphost: (Default.) Local IP address becomes myhost.mydom.or.jp.

locals:
Messages for localhost.mydom.or.jp are delivered locally.
me: My name is myhost.mydom.or.jp.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is or.jp.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at localhost.mydom.or.jp.
SMTP clients may send messages to recipients at myhost.mydom.or.jp.
SMTP clients may send messages to recipients at mydom.or.jp.
SMTP clients may send messages to recipients at agic.ne.jp.
SMTP clients may send messages to recipients at .mydom.or.jp.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 myhost.mydom.or.jp.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains:
Virtual domain: mydom.or.jp:mydom.or.jp

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.

qmail: I have no idea what this file does.


Thanks,

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//Maildir/ instead of to the Maildir in the vpopmail structure.
> If Maildir/ does not exist in /home//, 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-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//Maildir/ instead of to the Maildir in the vpopmail structure.
If Maildir/ does not exist in /home//, 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
> 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  ) 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: "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  ) 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-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
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


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-08 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-07 Thread GIC MLs
> Since the authentication failure doesn't trigger the syslog message, QPOP
> isn't calling vchkpw.

ahaaa...

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

Ok, this is the one part of the FAQ that I didn't understand/implement,
because 1) it sounded as though it is optional, and 2) I wasn't sure where I
should put the startup script.

Shawn


RE: POP Authentication Not Working

2001-05-07 Thread Chris Bolt
> > Is QPOP calling /usr/local/vpopmail/bin/vchkpw?
>
> I don't know. How do I find out?
>
> > What does syslog say?
>
> /var/log/messages reports one instance of vchkpw: vchkpw: Read error
> but it does not occur when I attempt the telnet session below. I
> am not sure
> what caused it.

Since the authentication failure doesn't trigger the syslog message, QPOP
isn't calling vchkpw.

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

> > Why is your gid so high?
>
> Because of all of the system users currently having their own
> group entries,
> which is one of the reasons I am trying to get vpopmail to work.

Ah, it just struck me as a bit odd that the gid was so close to nobody's.


Re: POP Authentication Not Working

2001-05-07 Thread GIC MLs

- Original Message -
From: "Chris Bolt" <[EMAIL PROTECTED]>
To: "GIC MLs" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 2:29 PM
Subject: RE: POP Authentication Not Working


> Is QPOP calling /usr/local/vpopmail/bin/vchkpw?

I don't know. How do I find out?

> What does syslog say?

/var/log/messages reports one instance of vchkpw: vchkpw: Read error
but it does not occur when I attempt the telnet session below. I am not sure
what caused it.

> Why aren't you using qmail-pop3d?

Wasn't aware that I should be.

> Why is your gid so high?

Because of all of the system users currently having their own group entries,
which is one of the reasons I am trying to get vpopmail to work.

> Did you create the vchkpw group?

Yes.

Thanks,

Shawn

> > Hi All,
> >
> > After finally getting vpopmail to install, I am not able to log
> > in as a new
> > vpop user.
> >
> > Environment: FreeBSD 4.2, qmail-1.03
> >
> > Config line:
> > #
./configure --enable-default-domain=mydom.or.jp --enable-roaming-users=y
> >
> > Output:
> > Current settings
> > ---
> > vpopmail directory = /usr/local/vpopmail
> >uid = 1227
> >gid = 65535
> >  roaming users = ON
> > user quota = OFF
> > tcpserver file = /usr/local/vpopmail/etc/tcp.smtp
> > open_smtp file = /usr/local/vpopmail/etc/open-smtp
> >auth module = cdb
> >   auth logging = OFF
> > pop syslog = show only failure attempts
> > default domain = mydom.or.jp
> >
> > make; make install-strip --> no problems
> >
> > # ./vadduser testuser --> prompted for passwd twice, as expected
> >
> > # telnet localhost 110
> > Trying 127.0.0.1...
> > Connected to localhost.mydom.or.jp.
> > Escape character is '^]'.
> > +OK QPOP (version 2.53) at mydom.nca.or.jp starting.
> > USER test
> > +OK Password required for test.
> > PASS 
> >
> > 
> >
> > -ERR Password supplied for "test" is incorrect.
> > +OK Pop server at mydom.nca.or.jp signing off.
> > Connection closed by foreign host.
> > #
> >
> > Any idea what I have done wrong here?
> > Some config option[s] wrong? Some file I should have edited?
> >
> > Any help appreciated,
> >
> > Shawn
>
>


RE: POP Authentication Not Working

2001-05-07 Thread Chris Bolt
Is QPOP calling /usr/local/vpopmail/bin/vchkpw? What does syslog say? Why
aren't you using qmail-pop3d? Why is your gid so high? Did you create the
vchkpw group?

> Hi All,
>
> After finally getting vpopmail to install, I am not able to log
> in as a new
> vpop user.
>
> Environment: FreeBSD 4.2, qmail-1.03
>
> Config line:
> # ./configure --enable-default-domain=mydom.or.jp --enable-roaming-users=y
>
> Output:
> Current settings
> ---
> vpopmail directory = /usr/local/vpopmail
>uid = 1227
>gid = 65535
>  roaming users = ON
> user quota = OFF
> tcpserver file = /usr/local/vpopmail/etc/tcp.smtp
> open_smtp file = /usr/local/vpopmail/etc/open-smtp
>auth module = cdb
>   auth logging = OFF
> pop syslog = show only failure attempts
> default domain = mydom.or.jp
>
> make; make install-strip --> no problems
>
> # ./vadduser testuser --> prompted for passwd twice, as expected
>
> # telnet localhost 110
> Trying 127.0.0.1...
> Connected to localhost.mydom.or.jp.
> Escape character is '^]'.
> +OK QPOP (version 2.53) at mydom.nca.or.jp starting.
> USER test
> +OK Password required for test.
> PASS 
>
> 
>
> -ERR Password supplied for "test" is incorrect.
> +OK Pop server at mydom.nca.or.jp signing off.
> Connection closed by foreign host.
> #
>
> Any idea what I have done wrong here?
> Some config option[s] wrong? Some file I should have edited?
>
> Any help appreciated,
>
> Shawn