Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vchkpw: vpopmail user not found

0 views
Skip to first unread message

Alan Murrell

unread,
Aug 29, 2002, 7:34:42 PM8/29/02
to
Hello,

I installed the latest Qmail, Vpopmail (stable, not development), and
Courier-IMAP, daemontools, and ucspi-tcp, following the instructions in
"Bill;'s Qmail Toaster Guide".

I then created a virtual domain using vadddomain (for this example, I will
use virtualdomain1.com as the domain). I then added
'webm...@virtualdomain1.com', and got prompted to create a password, which
I did.

I sent a test email from my Yahoo! account, and it got to the mailbox just
fine. However, when I attempt to retrieve the email using any mail client, I
keep getting prompted for the username/password. The /var/log/maillog says:

vchkpw: vpopmail user not found webm...@virtualdomain1.com:<IP ADDRESS>

I am using webm...@virtualdomain1.com as the username (since
virtualdomain1.com isn't the default domain), and in the
/var/lib/courier-imap/etc/imapd.rc file, I do have 'AUTHDOMAINS="vchkpw"'.

I tried deleting then re-adding the domain, however, it does not seem to
work. It seems that I am only able to either get login working correctly, or
mail sent to the mailbox correctly, but not both together (I was having the
problem before where loging in as the user was working, but mail was being
bounced back saying "user not know", even though the user *did* exist)

Your help greatly appreciated.

Alan Murrell swasak@hotmailcom

Alan Murrell

unread,
Aug 29, 2002, 8:13:04 PM8/29/02
to
One thing I thought I should mention is the version of the packages I am
using:

daemontools: 0.76
ucspi-tcp: 0.88
qmail: 1.03
vpopmail: 5.2.1
courier-imap: 1.5.3.20020823

I haven't yet installed Qmailadmin, etc. yet.. Hopefully this helps a bit
:-)

Alan Murrell swa...@hotmail.com

/dev/rtcg

unread,
Aug 30, 2002, 12:22:19 PM8/30/02
to
Alan Murrell <swa...@hotmail.com> scribbled in
news:0Nyb9.29909$C8.1...@nnrp1.uunet.ca:

BINGO! Vpopmail-5.2.1! Get rid of it! It has KNOWN vchkpw issues. Use at
least 5.3.7 which was deemed stable enough for production. Alternatively
you could go to an older version of vpopmail (v5.0) and download a special
preauthvchkpw.c file to make it work.

If you can't find the specific preauthvchkpw.c file and you want to use it,
let me know. I have it archived.

/dev/rtcg


Alan Murrell

unread,
Aug 30, 2002, 6:18:17 PM8/30/02
to
> BINGO! Vpopmail-5.2.1! Get rid of it! It has KNOWN vchkpw issues. Use
at
> least 5.3.7 which was deemed stable enough for production.

I downloaded 5.3.8, and used the following ./configure options (same as with
the 5.2):

./configure --enabe-default-domain=virtualdomain.com --enable-roaming-users=
y --enable-logging=v

I am getting the same problem. Authorization fails on both the default
domain and the virtual domain. I have done both 'qmailctl stat' and
'vpopmail stat', and everything is running just fine. I was looking at the
"qinstall" package, and was thinking about trying to use that. Any
experiences (positive or negative??) with using that package? or, if there
are any further suggestions, they would also be appreciated.

TIA,

Alan Murrell swa...@hotmail.com

/dev/rtcg

unread,
Aug 31, 2002, 7:27:57 AM8/31/02
to
Alan Murrell <swa...@hotmail.com> scribbled in
news:pbSb9.38383$C8.1...@nnrp1.uunet.ca:

Dang the bad luck! ok....let me post the commands I used to install
vpopmail. Then you can compare those with your own. (I'm running Slackware
8.1...BTW) Note: This is NOT a script file. This is however something
that can be cut and pasted to the CLI.

I kinda developed my OWN qinstall package. I'm still working out the bugs in
the scripts, but my server installation time has dropped dramatically. I've
taken to just copying and pasting my script to the command line because I'm
su'ing to the compile user then exiting back out. That causes havoc with
the script...and until I get some more of that UNIX101 experience under my
belt....I won't be able to put it in script form. I keep an entire log
file of step by step installation steps for each product (qmail, sqwebmail,
courier, qmail-scanner, NetSSLeay, TimeDate (perl module), and a slew of
other stuff. It will be probably another month before I can finish
perfecting it (I'm having a "vpopmail not creating the lib files in
~vpopmail/lib" issue that I want to resolve. The same commands seem to
work, but I have to run it multiple times. Go figure.)

Well, here's what *I* did. Notice how I turned off every authentication
function EXCEPT vchkpw? :) ok...well, quotfix for MSOE is going to
properly wrap these lines....so I'm going to put a blank line between each
command line so that you can stitch it back together.

#[vpopmail setup]

#[optional compile user setup]

#create a compile user

groupadd compile

useradd -c 'compile user' compile -d /dev/null -g compile -s /bin/bash -u
2525

#assign some directory rights to user compile

chown compile:compile /usr/src

mkdir -p /usr/download; chown compile:compile /usr/download

#[/optional compile user setup]

#download and install VPOPMAIL

# *note development version used to fulfill feature requirements

cd /usr/download

su compile

wget http://www.inter7.com/devel/vpopmail-5.3.7.tar.gz

cd /usr/src

tar -zxvf /usr/download/vpopm*

exit

cd /usr/src/vpop*

groupadd -g 89 vchkpw

useradd -g vchkpw -u 89 -d /home/vpopmail vpopmail

./configure --enable-roaming-users=y --enable-clear-passwd=y --enable-loggin
g=e

make

make install-strip

echo '10.1.27.:allow,RELAYCLIENT=\"\"' >> ~vpopmail/etc/tcp.smtp

#[/vpopmail setup]

#[courier-imap setup]

chmod 707 ~vpopmail/lib

chmod 606 ~vpopmail/lib/*

cd /usr/download

su compile

wget
http://telia.dl.sourceforge.net/sourceforge/courier/courier-imap-1.5.1.tar.g
z

cd /usr/src

tar -zxvf /usr/download/courier-imap-1.5.1.tar.gz

cd courier-imap-1.5.1

./configure --disable-auto-rename-sent --without-authpwd --without-authshado
w --without-authpam --without-authuserdb --without-authmysql --without-authp
gsql --without-authldap

make

echo Press Enter to continue;read #notice the pauses? They let us see if
the make was successful before continuing

make check

echo Press Enter to continue;read

exit

echo Press Enter to continue;read

cd /usr/src/courier-imap-1.5.1

echo Press Enter to continue;read

make install-strip

echo Press Enter to continue;read

echo '#Starting Courier-Imap' >> /etc/rc.d/rc.local

echo '/usr/lib/courier-imap/libexec/authlib/authdaemond start' >>
/etc/rc.d/rc.local

echo Press Enter to continue;read

make install-configure

chmod 700 ~vpopmail/lib

chmod 600 ~vpopmail/lib/*

echo "/usr/lib/courier-imap/libexec/imapd.rc start" >> /etc/rc.d/rc.local

echo "/usr/lib/courier-imap/libexec/pop3d.rc start" >> /etc/rc.d/rc.local

#[/courier-imap setup]


Happy Hunting

--
/dev/rtcg


Alan Murrell

unread,
Sep 1, 2002, 4:50:37 AM9/1/02
to
"/dev/rtcg" <news...@rain4us.net> wrote in message news:<1L1c9.304668$UU1.54038@sccrnsc03>...

>
> Well, here's what *I* did.

[SNIP]

Just wanted to let you know that by compiling Vpopmail and
Courier-IMAP using your instructions, I now have everything working
properly. Thank you very much!

Out of curiousity, do you basically just compile Qmail regularly
(i.e., via the "Life With Qmail" way, a la Qinstall), or is there
anything "special" you do with that? Essentially what my setup
currently consists of is an install via Qinstall, then a
recompile/install of Vpopmail and Courier IMAP using the instructions
you posted.

If I can be of any help with your script, please let me know, though
it should be possible to just "hack" the Qinstall script to use those
compile options, no?

Well, now that I have that working, I now just have to get Sqwebmail
and Qmailadmin to authenticate! I'm thinking a recompile/install with
the newly-compiled-and-working Vpopmail and Courier IMAP ought to do
the trick :-)

Thanx, again,

Alan Murrell <swa...@hotmail.com>

/dev/rtcg

unread,
Sep 1, 2002, 1:20:03 PM9/1/02
to
Alan Murrell <swa...@hotmail.com> scribbled in
news:6b9fbc17.02090...@posting.google.com:

> "/dev/rtcg" <news...@rain4us.net> wrote in message

>> Well, here's what *I* did.
>
> [SNIP]
>
> Just wanted to let you know that by compiling Vpopmail and
> Courier-IMAP using your instructions, I now have everything working
> properly. Thank you very much!

THAT'S GREAT!!! You're MORE than welcome!

>
> Out of curiousity, do you basically just compile Qmail regularly
> (i.e., via the "Life With Qmail" way, a la Qinstall), or is there
> anything "special" you do with that? Essentially what my setup
> currently consists of is an install via Qinstall, then a
> recompile/install of Vpopmail and Courier IMAP using the instructions
> you posted.

Oh...the 'ol two step forwards one step back qinstall/reinstall recompile
trick! Yeah...I've heard of that one.


>
> If I can be of any help with your script, please let me know, though
> it should be possible to just "hack" the Qinstall script to use those
> compile options, no?

Possibly. As soon as things slow down (and inveriably they will...) I need
to take a look at qinstall / qmail toaster...whatever is out there.

Tell you what. I'll email your hotmail account with a snippet from my
lastest /etc/install.log file so that you can see the whole automated
process. (well almost totally automated. I keep refining it...but I still
can't put it in a script! Dang lack of Unix 101 experience!) You should
receive an email with a subject line of '/dev/rtcg - qmail and accessories
setup' You can reply to the email address from whence that message will
come.

(Dave, I'm going to send you the same log file)

In the mean time, you can visit
http://www.rain4us.net/files/qmail-super-setup for the latest in my personal
battle with automating the qmail setup. The file is updated without warning
and is NEVER to be considered free of errors or bugs. Be sure to edit
anything in curly french brackets ' { } ' with your own needed values.

> Well, now that I have that working, I now just have to get Sqwebmail
> and Qmailadmin to authenticate!

HA! I used the same compile options for sqwebmail that I did for
courier-IMAP...well I think it's the same compile options. Anyhooo, I had
to turn off all of the authentication modules I wasn't using.

>I'm thinking a recompile/install with
> the newly-compiled-and-working Vpopmail and Courier IMAP ought to do
> the trick :-)

Go for it..."what's the worst that could happen?"[1] You'd just have to
rebuild the whole system[2] and have a great learning experience.


[1] By Donald E. Westlake (it's a good read)
[2] email system that is.

--
/dev/rtcg

Alan Murrell

unread,
Sep 1, 2002, 5:07:41 PM9/1/02
to
> Oh...the 'ol two step forwards one step back qinstall/reinstall recompile
> trick! Yeah...I've heard of that one.

Well, only because I wanted to be sure Qmail would be compiled correctly.
However, I am guessing that since the Qinstall script apparently follows
"Life With Qmail" rather closely, then I can just compile Qmail with the
same compile options found in LWQ :-)

> Tell you what. I'll email your hotmail account with a snippet from my

Your email may have bounced, because my Hotmail account was too full. You
can send it to me at:

alanm AT vnc DOT bc DOT ca

(replace the obvious <grin>)

> In the mean time, you can visit
> http://www.rain4us.net/files/qmail-super-setup for the latest in my
personal

Ah yes, I love projects like Qinstall, your script, Apachetoolbox, etc.
They make installing relatively painless, esp., since they go and grab the
sources for you. Perhaps, once this is polished, it could be made available
either in just script form, or with all the sources. The script could do a
check for all the necessary sources, and grab them only if necessary? Justa
thought.

> HA! I used the same compile options for sqwebmail that I did for
> courier-IMAP...well I think it's the same compile options. Anyhooo, I had
> to turn off all of the authentication modules I wasn't using.

Hmmm, I did that, and I still get authentication error "Invalid username or
password). Same with Qmailadmin :-( Here's the configure options i used:

(SqWebmail):
./configure --disable-autorenamesent --without-authpwd --without-authshadow
--without-authuserdb --without-authldap --without-authdaemon --enable-imaged
ir=/websites/webadmin/html/sqwebmail --enable-cgibindir=/websites/webadmin/c
gi-bin

I then did the standard 'make' and 'make install-strip'. For QmailAdmin, I
did:

./configure --enable-htmldir=/websites/webadmin/html --enable-htmllibdir=/we
bsites/webadmin/html --enable-cgibindir=/websites/webadmin/cgi-bin

And of course, the standard 'make' and 'make install-strip'

In each case, because I do not have suid setup (or at leats, I am not sure
how to do so), I had to change the permissions on the CGI binaries to 755.

As I mentioned, even though I can authenticate properly with a mail client,
as well as via telnet (port 110), SqWebmail is throwing me an authentication
error. And I can't log in to Qmailadmin as 'postmaster' for any of the
domains I added either. The logs aren't revealing too much, unfortunately
(or maybe I'mm looking at the wrong logs??) The SqWebamil and Qmailadmin
files are installed in their own directory/DocRoot, /websites/webadmin, as
opposed to the (main) virtual domain's directory/DocRoot.

A couple things I did notice:

* SqWebmail sets itself to run as the user 'vpopmail' and group 'vchkpw'.
Unfortunately, users with a UID less than 100 aren't allowed to execute
CGI's (vpopmail/vchkpw are UID/GID 89). Is that what the SUID bit is for?
* I changed ownership of all the sqwebmail and qmailadmin files in the
cgi-bin and images directory to that of the main virtual domain's UID/GID.
The pages come up fine, but as I said, authentication fails :-(
* Not sure if it was the changes I made, or the install of
SqWebmail/Qmailadin, but after they installed, I was unable to authenticate
using either telnet (to port 110), or a mail client. I had to
recompile/install Vpopmail and Courier-IMAP to get it working again.

Any help on this matter appreciated. TIA.

Alan Murrell swa...@hotmail.com

/dev/rtcg

unread,
Sep 1, 2002, 9:06:22 PM9/1/02
to

"Alan Murrell" <swa...@hotmail.com> wrote in message
news:flvc9.45841$C8.1...@nnrp1.uunet.ca...

> Your email may have bounced, because my Hotmail account was too full. You
> can send it to me at:
>
> alanm AT vnc DOT bc DOT ca
>
> (replace the obvious <grin>)

Well, I replaced the AT and the two DOTS...took out the spaces...and got a
rejection!

Care to try again?

<snipped the rest. too much reading at this time>

Hmm..I'm going to try your hotmail account. :) otherwise try your email
address again.

--
/dev/rtcg

Alan Murrell

unread,
Sep 2, 2002, 2:34:06 AM9/2/02
to
"/dev/rtcg" <news...@rain4us.net> wrote in message news:<iQyc9.325689$UU1.56105@sccrnsc03>...

> Well, I replaced the AT and the two DOTS...took out the spaces...and got a
> rejection!
>
> Care to try again?

ooops, *should* be:

alanm AT vcn DOT bc DOT ca

Sorry, I transposed the 'c' and the 'n' :-(

Alan Murrell <swa...@hotmail.com>

0 new messages