----- Original Message -----
Sent: Saturday, September 11, 2004 3:19 AM
Subject: [vchkpw] Moving tcp.smtp

I'm trying to implement 'vpopmail roaming users'.

The docs say to "store the tcp.smtp files in ~vpopmail/etc".

I've tried doing so...& updating all the qmail control/run files I could find, but it 'breaks' the svr (smtp errors, no mail in/out).

Here's what I've done:

1.  Physical move:
     cp /etc/tcp* ~vpopmail/etc
     cd ~vpopmail/etc
     chown vpopmail.vchkpw tcp*
            (wasn't sure who should own 'em... I tried root.root also)

2. Modify qmail files:
     /var/qmail/supervise/qmail-smtpd/run  :  changed path:

exec /usr/local/bin/softlimit -m 4000000 \
/usr/local/bin/tcpserver \
  -H -l mail.spacefoundation.org \
  -v -x ~vpopmail/etc/tcp.smtp.cdb \
  -c 20 -R -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/usr/local/bin/rblsmtpd -b -C \
I remember there being a gotcha that the path shouldnt be specified as ~vpopmail, it in fact needs to be the full path. I know for sure this is the case with the --enable-tcpserver-file configure command, but I am not 100% sure whether it also applies to the qmail-smtp/run file. It wouldnt hurt to update your syntax above to use the full path to the cdb file just in case.
     /var/qmail/bin/qmailctl   :  changed in multiple places from:
          /etc/tcp...   -->   ~vpopmail/etc/tcp...

3.  qmailctl cdb  (just to force a new build in the new folder)

So what did I miss??  As I said, when I make these changes, it 'breaks'.  No smtp.
You will need to restart the qmail-smtp supervise process for the changes to to take effect
ie qmailctl restart

Reply via email to