Hi all,
After struggling with qmail for about a week straight, finally finding out
about vpopmail, and finally fixing (I think) some minor problems, I have
come to a point where I just cannot progress beyond.  I tried to look all
over (is it me or is the qmail and vpopmail documentation not very
centralized?)

The problem:
I'm trying to setup a virtual hosting e-mail server that will host our own
domain as well as our clients' domains.  Since they are not connected to the
Internet through us, I'm trying to setup with the roaming-users feature.  I
used the qmail-smtpd-auth patch for this purpose.  I've been using
documentation from about 4-5 different places trying to get things setup
(qmail's own documentations weren't using the ucspi and daemontools).  At
some point, it was just a big Frankenstein monster of all different thing
that may or may not have worked together.
At this point, I can get e-mail through pop3 client through a system account
(my own) set up to receive logcheck messages (redirecting root's e-mail to
my own).
I cannot get any virtual domain's pop3 accounts working.  I keep getting
authorization failed.  I tried using, as user name,
[EMAIL PROTECTED]
testuser%domain.com
testuser
I used ~vpopmail/bin/vadddomain to add the domain and ~vpopmain/bin/vadduser
to add users.
When I add or delete domains, the files and directories get created, but I
also get an error message:

qmail-newu: fatal: bad format in users/assign

I don't know why it's happening, but I guess it might be key to my problem.


The setup:
- I'm using RH Linux 6.1.
- I've installed (and reinstalled a few times) qmail 1.03.  I've applied the
dns patch (the one for large DNS packets that don't conform to the RFC) and
the qmail-smtpd-auth patch.
- I've installed the ucspi and daemontools.
- I've finally resolve the problem of svc restarting the services over and
over again.
- I've set it up to use Maildir (or so I think).
- I've set up vpopmail with the --enable-roaming-users=y

- I've set it up so that I have the following directories for the svc
services:
/services/qmail-pop3d
/services/qmail-send
/services/qmail-smtpd
They are all symbolic links to the /var/qmail/supervise/qmail-* directories.
I was following the qmail-howto to setup the qmail-send and qmail-smtpd as
services, and I inferred (maybe incorrectly) that I could do the same with
the qmail-pop3d.

Here's what the qmail-*/run scripts look like:

qmail-pop3d/run:
#!/bin/sh
exec env - PATH="/var/qmail/bin:/usr/local/bin" \
/usr/local/bin/tcpserver -H -R -l(hostname) -c100 0 pop-3 \
/var/qmail/bin/qmail-popup (hostname) \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir

qmail-smtpd/run:
#!/bin/sh
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -l(hostname) -x/home/vpopmail/etc/tcp.smtp.cdb -c100 \
-u508 -g503 0 smtp \
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchpw /bin/true \
2>&1 > /dev/null

qmail-send/run:
#!/bin/sh
exec /var/qmail/rc

/var/qmail/rc:
#!/bin/sh
env - PATH="/var/qmail/bin:/usr/local/bin" \
qmail-start ./Maildir/ splogger qmail

thanks in advance for any help.  Sorry for being so long-winded.  I don't
know if there is any other important detail I left out.

Wen Lai

Reply via email to