Derek,

If you edit /etc/tmdarc and set FILTER_INCOMING (see
http://www.tmda.net/config-vars.html#FILTER_INCOMING) to point to a global
incoming filter where you define your global whitelist, then using the
include filter option you can include the users personal incoming filter
utilizing variable interpolation to get the right filter file. (see
http://www.tmda.net/config-filter.html#addlfeatures for more info on the
include statement and variable interpolation) your tmdarc might look like
this:

[circle:etc> cat tmdarc
FILTER_INCOMING = "/etc/filters/globalincoming"
USERS_FILTER = "os.path.expanduser("~/.tmda/filters/incoming")
[circle:etc> 

And your globalincoming file might look like this:

[circle:filters> cat globalincoming
to-file /etc/lists/globalwhitelist ok
Include -optional ${USERS_FILTER}
[circle:filters> 

Check out the exampes in http://www.tmda.net/config-filter.html#addlfeatures
for more possible options

Dave


>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Darek M
>Sent: Thursday, June 12, 2003 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: Global white list?
>
>
>Hey guys, we use vpopmail to handle virtual mail domains.
>
>Each user has a ~vpopmail/domains/domain.com/user/.tmda dir.
>
>The config inside (created by the vadduser-tmda script in contrib) is 
>at the end.
>
>What I'd like is to have a global whitelist for all users, either 
>within a domain, or for all domains, in addition to their user 
>specific 
>white lists as to have a central file I could update easily, 
>instead of 
>50 files. I couldn't really make anything stick. Anyone know the setup 
>required?
>
>As an aside, are there any qmail-admin-like packages that work with 
>vpopmail? I know there is Qtmda-admin (sorry, forgot the exact 
>name and 
>cannot find it now) but it required a lower version of qmail 
>admin than 
>what we use now.
>
>
>
>CRYPT_KEY_FILE = 
>"/home/vpopmail/domains/DOMAIN.TLD/USER/.tmda/crypt_key"
>CONFIRM_APPEND = 
>"/home/vpopmail/domains/DOMAIN.TLD/USER/.tmda/lists/whitelist"
>DATADIR = "/home/vpopmail/domains/DOMAIN.TLD/USER/.tmda/"
>PENDING_WHITELIST_APPEND = CONFIRM_APPEND
>PENDING_BLACKLIST_APPEND = 
>"/home/vpopmail/domains/DOMAIN.TLD/USER/.tmda/lists/blacklist"
>PENDING_RELEASE_APPEND = CONFIRM_APPEND
>FILTER_INCOMING = 
>"/home/vpopmail/domains/DOMAIN.TLD/USER/.tmda/filters/incoming"
>FILTER_OUTGOING = 
>"/home/vpopmail/domains/DOMAIN.TLD/USER/.tmda/filters/outgoing"
>HOSTNAME = "DOMAIN.TLD"
>
>_____________________________________________
>tmda-users mailing list ([EMAIL PROTECTED])
>http://tmda.net/lists/listinfo/tmda-users
>
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to