----- Original Message -----
From: "Jonas Pasche" <[EMAIL PROTECTED]>
Sent: Sunday, March 09, 2003 10:17 AM
Subject: RE: [vchkpw] tcp.smtp file perms/owns for -enable-roaming-users?

> Hi Jesse,
> > Hmmmm....is ~vpopmail/etc/open-smtp a file I should have manually created at
> > some point in time (touch open-smtp)?
> No. As you use the MySQL backend, there is no need for that file. You
> should have mentioned in your first post that you're using MySQL as a
> backend.

I did.

> Rule of thumb: If you did anything other besides a plain "./configure"
> when compiling qmail, let us know your configure line if you post a
> question, or tell us about ("I have compiled vpopmail with roaming users
> support and the MySQL backend"); it prevents unneccessary confusion.

I considered posting my configure statement, but I figured that just mentioning that I 
use MySQL should do the trick. I have a very
long configure statement, and I figured it would probably just confuse some people.

> > Where I'm also
> > lost, then, is that my /etc/tcp.smtp and /etc/tcp.smtp.cdb files are both
> > owned by root:root at present (this seems incorrect to me) and are both
> > chmod 644.
> The tcp.smtp.cdb file has to writable to the user that handles the POP3
> session for the authenticed user. In many cases, this is
> vpopmail.vchkpw, but it might be another user if you created domains
> with the "-u <user>" argument.
> Try "chown vpopmail.vchkpw /etc/tcp.smtp.cdb" first and see if it works.

First off, I didn't write the text you just replied to. That was written by the other 

Second, take a look at this excerpt from the FAQ file in the root of my vpopmail 5.2.1 

-- begin --
4. How do I allow roaming users to use our smtp server without opening
   the machine up to everyone on the internet?

   Your startup script for the qmail smtp server must use the
   tcpserver -x file command similar to this startup line.

    env - PATH="/var/qmail/bin:/usr/local/bin" \
    tcpserver -H -R -x /path/to/vpopmail/etc/tcp.smtp.cdb \
        -c20 -u504 -g503 0 smtp \
    /var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &
-- end --

This clearly implies that the tcp.smtp.cdb file is to be created by vpopmail (or 
clearopensmtp) in the /path/to/vpopmail/etc/
directory. Here are my permissions for that directory:

drwxr-xr-x   2 vpopmail  vchkpw  512 Mar  7 19:42 ./
drwxr-xr-x  11 vpopmail  vchkpw  512 Feb  6 15:16 ../
-rw-r--r--   1 vpopmail  vchkpw   30 Dec 12 09:31 inc_deps
-rw-r--r--   1 vpopmail  vchkpw   78 Dec 12 09:31 lib_deps

vpopmail clearly has write access. Yet a .cdb file was not created. I even copied my 
/etc/tcp.smtp file here and ran clearopensmtp.
No .cdb file.

So, I ask again: Does vpopmail now neglect to build a .cdb file when 
--enable-roaming-users=y and --with-mysql are specified at
configure time? If this is the case, then the INSTALL AND FAQ files need to note this.

Or is the FAQ incorrect, and vpopmail now tries to build the .cdb in my /etc 
directory? If that's the case, the documentation is
still incorrect, and it needs to be updated.

Thanks for replying!


> Jonas

Reply via email to