"Greg Saylor" <[EMAIL PROTECTED]> writes:
> #1. There is no /usr/local/vpopmail/domains/net-virtual.com/.qmail-
> gsaylor2 or .qmail-gsaylor-default file...
>
> #2. The /usr/local/vpopmail/domains/net-virtual.com/.qmail-default file is:
>
> | /usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox
>
> #3. There *IS* a /usr/local/vpopmail/domains/net-virtual.com/gsaylor2/
> .qmail and /usr/local/vpopmail/domains/net-virtual.com/gsaylor2/.qmail-
> default file though.. They are not linked, but each contain:
>
> |preline /usr/local/bin/tmda-filter
> ./Maildir/
>
>
> .. these were automatically modified after having logged into to tmda.cgi
> and setup the account to be "tmda enabled"
>
> #4. gsaylor2/.tmda/config is:
>
> CGI_VIRTUALUSER = 0
> CRYPT_KEY_FILE = "/usr/local/vpopmail/domains/net-virtual.com/gsaylor2/
> .tmda/crypt_key"
> CONFIRM_APPEND = "/usr/local/vpopmail/domains/net-virtual.com/gsaylor2/
> .tmda/lists/confirmed"
> DATADIR = "/usr/local/vpopmail/domains/net-virtual.com/gsaylor2/.tmda/"
> FILTER_INCOMING = "/usr/local/vpopmail/domains/net-virtual.com/gsaylor2/
> .tmda/filters/incoming"
> FILTER_OUTGOING = "/usr/local/vpopmail/domains/net-virtual.com/gsaylor2/
> .tmda/filters/outgoing"
> LOGFILE_DEBUG = "/home/vpopmail/tmdadebug.log"
> LOGFILE_INCOMING = "/home/vpopmail/tmdaincoming.log"
> ADDED_HEADERS_CLIENT = {"X-Primary-Address": "[EMAIL PROTECTED]"}
> PENDING_BLACKLIST_APPEND = "/usr/local/vpopmail/domains/net-virtual.com/
> gsaylor2/.tmda/lists/blacklist"
> PENDING_WHITELIST_APPEND = "/usr/local/vpopmail/domains/net-virtual.com/
> gsaylor2/.tmda/lists/whitelist"
> TEMPLATE_DIR = "/usr/local/vpopmail/domains/net-virtual.com/gsaylor2/
> .tmda/templates/"
This is a horrifying mess built upon a grotesque mis-feature of
vdelivermail. (But what do you really think, Tim?) I'm not even
going to attempt to explain. Here's what you should do.
1) Upgrade to release 0.81. This release introduces the -S command
line switch that we'll use below. It simplifies things a lot.
2) Copy the vpopmail-vdir.sh script from the contrib/ directory in the
TMDA source distribution to /usr/local/vpopmail/bin. Ensure that
it is executable:
$ chown vpopmail:vcheckpw /usr/local/vpopmail/bin/vpopmail-vdir.sh
$ chmod 755 /usr/local/vpopmail/bin/vpopmail-vdir.sh
3) Edit /usr/local/vpopmail/domains/net-virtual.com/.qmail-default.
It should look like this:
| preline /usr/local/bin/tmda-filter -S /usr/local/vpopmail/bin/vpopmail-vdir.sh
| /usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox
4) Delete .../gsaylor2/.qmail*.
5) Edit .../gsaylor2/.tmda/config. Suggested contents follow, with
comments (don't put the comments in the file, as it is a Python
source file):
import os
CGI_VIRTUALUSER = 1
I'm not sure if you need this or not. I suspect you do, though.
CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/confirmed")
ADDED_HEADERS_CLIENT = {"X-Primary-Address": "[EMAIL PROTECTED]"}
PENDING_BLACKLIST_APPEND = os.path.expanduser("~/.tmda/lists/blacklist")
PENDING_WHITELIST_APPEND = os.path.expanduser("~/.tmda/lists/whitelist")
TEMPLATE_DIR = os.path.expanduser("~/.tmda/templates/")
According to the config listing above, the logfiles are stored in
the /home/vpopmail directory. Do you even have such a thing? I
suspect this is an artifact from the skel files.
You can either direct all logs for every user to a single file or
you can keep separate logs per domain or per user. I'll assume
that, in any case, you'd like to place them in a logs/
subdirectory. You'll need to create that directory yourself.
Here are the lines necessary for single, unified logs:
LOGFILE_DEBUG = "/usr/local/vpopmail/logs/tmdadebug.log"
LOGFILE_INCOMING = "/usr/local/vpopmail/logs/tmdaincoming.log"
Here are the lines for per-domain logs (the logs will be placed in
/usr/local/vpopmail/domains/net-virtual.com/logs, in this case):
logpath = os.path.abspath(os.path.expanduser("~/../logs"))
LOGFILE_DEBUG = os.path.join(logpath, "tmdadebug.log")
LOGFILE_INCOMING = os.path.join(logpath, "tmdaincoming.log")
And here are the lines you would use for per-user logs:
LOGFILE_DEBUG = os.path.expanduser("~/.tmda/logs/tmdadebug.log")
LOGFILE_INCOMING = os.path.expanduser("~/.tmda/logs/tmdaincoming.log")
Try those steps and let us know if you have additional problems.
Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users