Anders wrote:

> Gary V skrev:
>> Anders wrote:
>> 
>>> I'm setting up a new mail server and get a bit confused by amavis-new
>>> parameter @local_domains_maps.
>>> What good does it do really?
>> 
>> For one thing, X-Spam headers and Subject tagging will only occur for
>> local domains. With 30 domains, it would probably be easier to list
>> them in a file, one domain per line (prefix with a period to add
>> subdomain/host wildcard):
>> 
>> @local_domains_maps = ( read_hash("$MYHOME/local_domains") );
>> 
>> .example.com
>> .example.net

> The problem is that the domains are stored in a MySQL server, managed by 
> web-cyradm.  It would be really impractical to dump the database and 
> store it on the mail server in a text file.
> It would be optimal to read it directly from the DB like Postfix does.

> I don't do the address mangling until after amavis, so amavis would see 
> all the virtual addresses, then feed back to postfix that remaps them to 
> one (the local) domain.

> Anders Norrbring
> Norrbring Consulting

Write a script that dumps the data and reloads amavisd-new. Run it
when you add a new domain. Or manually add new domains to the file.
How often can that be? If you don't want to restart amavisd-new,
set up SQL for amavisd-new and add a new domain there with an SQL
command. See
http://www.ijs.si/software/amavisd/README.sql.txt
http://marc.theaimsgroup.com/?l=amavis-user&m=113479225731661&w=2
Maybe you could write a command/script that added domains to the users
table from existing data. With 30 domains, depending on your setup,
you may have domains that wish to have policies that differ from the
others so you may end up deciding to set up SQL in the end anyway.

Gary V


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to