Ralph Giles <[EMAIL PROTECTED]> writes:
> Ah, I didn't realize you could put code in there.
Yup, a TMDA config file is nothing but a Python program actually.
Normally, people do nothing except set variables, but more complex
configurations are possible.
> Our aliases are configured so:
>
> foo: "|tmda-filter -D [EMAIL PROTECTED]"
> foo-listserv: "|/etc/foo/wrapper resend -l foo -h
> xiph.org foo-outgoing"
> foo-outgoing: :include:/etc/listserv/lists/foo,
> "| /etc/listserv/wrapper archive2.pl -a -m
> -f /var/spool/mail/archive/foo",
> "|/etc/listserv/wrapper hypermail -i -u
> -c /etc/listserv/lists/foo.archive"
So, presumably you have a user account that drives your TMDA with a
.tmda/config file. Within config, you could capture the $LOCAL
environment variable (LOCAL is the recipient address localpart (text
to the left of the @ character)) and use that to construct the
'[EMAIL PROTECTED]' portion. e.g,
# split $LOCAL on `-confirm-' to determine which list this is
listname = os.environ.get("LOCAL").split("-confirm-")[0]
DELIVERY = "[EMAIL PROTECTED]" % listname
I don't know what your LOCAL variables look like, but they might or
might not need some additional massaging. If you have trouble with
this, show us an example of what your LOCAL and EXTENSION variables
are set to when mail is sent to both "[EMAIL PROTECTED]" and
"[EMAIL PROTECTED]".
> How does the mailman integration work on the tmda lists?
See http://article.gmane.org/gmane.mail.spam.tmda.devel/4542
for the .tmda/* files I'm using. The nice thing is that I only have
to maintain one set of files for all my lists.
> Having subscribers automatically whitelisted seems like a nice
> feature.
You should be able to do this with Majordomo as well, as I believe MD
stores subscriber lists in a TMDA-compatible format (one e-mail
address per line). You could use something like the following once
you've set `listname' as shown above:
# allow list subscribers through
from-file /etc/listserv/lists/${listname}/subscribers.txt ok
Adding the '-autodbm' or '-autocdb' options would be helpful if you
have large subscriber lists.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers