Thanks Stefan,

Thats is a possibility, however I'm planning on having multiple servers with
Postfix and Amavisd running and would like to only have to update 1 DB(Will
have regular updates)

On Tue, 2009-06-16 at 19:39 +0930, Cory Hawkless wrote:
> Anybody got any info on this?
> 
> ...
> I have just configured my new Fedora\Postfix\Amavisd\Clam\MySQL server and
> have postfix querying MySQL for accepted relay domains(Postfix is a front
> end to other servers, Exchange etc) but haven't been able to easily find
any
> documentation how to configure amavis to look at mysql for local domain
> maps. Ideally I'd like the whole thing to be dynamic, when I add a domain
> into mysql both postfix and amavis will pick up this setting without
having
> to reload config files and or recreate has tables.
> 
> Does anyone have any information or can point me in the right direction?

I have no solution for the part "without having to reload config files
and or recreate has tables", but I have the following setup for having
the local domains at only ONE place:

/etc/postfix/virtualdomains:
  domain1.com  OK
  domain2.com  OK

/etc/postfix/main.cf:
  virtual_alias_domains = hash:/etc/postfix/virtualdomains

/etc/amavisd.conf:
  @local_domains_maps = (
     ["$mydomain"],
     read_hash("/etc/postfix/virtualdomains")
  );

With this setup I only have to modify the virtualdomains file
and run "postmap virtualdomains". So at least you have to store
your local domains at only once place - maybe this is already
enough for you.

I am not sure if it is possible to ask amavisd to look into
an SQL database for local_domains_maps...

Regards
-stefan-



----------------------------------------------------------------------------
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
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