As promised, for inclusion in 'contrib': 

Attached is update-internaldomains.tar.gz

This script is intended to be run from cron every 15
minutes or so.

This script was designed to retrieve the complete list of
internal virtual domains from vpopmail by calling
'vdominfo -n' and then write that list of domains to a
TMDA "from-file -domains" whitelist, atomically replacing
the existing whitelist if and only if the new data is
different from the existing whitelist's data (or if the
existing whitelist does not yet exist).

However, it could easily be used with an accounting package
or a database retrieval script as long as the command
specified with the -s option returns a list of internal
domains, one per line, which you wish to use as your
system-wide whitelist.

In addition, if you have other domains that you'd like
to include in the final system-wide whitelist, but your
"-s command" doesn't include them (for instance, physical
machine DNS names, like 'machine1.wingnet.net'), you can
specify these additional hosts in the 'addto-whitelist' file
in the same directory as the whitelist specified by -f.

See 'update-internaldomains -h' for usage instructions.

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.


_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to