Ugh.  I hit the wrong key when only halfway done. :(

<[EMAIL PROTECTED]> writes:

> Ok, this makes sence then.  So I should just move all my TMDA stuff into
> the .tmda director and remove the DATADIR from the .tmdarc-tmda file.  I
> take it I will have to make the apropriate adjustments to the other
> directives in the file and all should be well.

Right.  If you look at the TMDA defaults for some of the variables you have
previously had to set, you'll see that having a .tmda directory with
the standard structure will make things work cleaner.

For example, you'll see that creating a 'filters' directory in '.tmda'
and putting files named 'incoming' and 'outgoing' in 'filters' means
that you can remove your FILTER_INCOMING and FILTER_OUTGOING settings,
because '.tmda/filters/incoming is the default.  Here's your
tmda-tmdarc file:

> CONFIRM_APPEND =
> "/var/vpopmail/domains/techropolis.com/tmda/lists/whitelist"

When I've fixed tmda-rfilter, you could move this to /etc/tmdarc, like
this:

CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/whitelist")

which will work for any user.  This won't work now, because
tmda-rfilter doesn't know enough about virtual domains.

> CONFIRM_MAX_MESSAGE_SIZE = 5000

This could go into /etc/tmdarc, if you wanted a global setting for all
of your virtual domains.

> DATADIR = "/var/vpopmail/domains/techropolis.com/tmda"

You can delete this.

> FILTER_INCOMING =
> "/var/vpopmail/domains/techropolis.com/tmda/lists/incoming"

You can delete this, if you store your 'incoming' and 'outgoing'
filters in ~/.tmda/filters.

> import time
> localtime = time.localtime(time.time())
> YYYYmm = time.strftime('%Y-%m',localtime)
> LOGFILE_INCOMING =
> "/var/vpopmail/domains/techropolis.com/tmda/log/tmdalog." + YYYYmm
> LOGFILE_DEBUG = "/var/vpopmail/domains/techropolis.com/tmda/log/debug"

Eventually, when tmda-rfilter is fixed, these could go in /etc/tmdarc
like this:

LOGFILE_XXX = os.path.expanduser("~/.tmda/log/tmdalog." + YYYYmm)

> PENDING_CACHE =
> "/var/vpopmail/domains/techropolis.com/tmda/pending/.msgcache"

You can delete this, as the default location is ~/.tmda/pending

> TEMPLATE_DIR = "/var/vpopmail/domains/techropolis.com/tmda/"

You have to leave this alone for now, again because of tmda-rfilter.

> BOUNCE_ENV_SENDER = "[EMAIL PROTECTED]"

You might want to leave as a per-user/domain variable, unless you want
all bounces to go to that address, regardless of which virtual domain
is generating the confirmation request.

> Has anyone considered making a script that would add a virtual user by
> running the vadduser and then creating the .tmda dir and copying template
> files into the proper places so the user is ready to go?

I think it's been discussed, but I don't think anyone has done it yet.


Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to