Mark Martinec wrote: > Yes, %sql_clause can be assigned-to in a config file.
Thank you Mark for the prompt answer. I tried it out this way: * exported %sql_clause to amavisd.conf from amavisd /binary/ * created a multiple set of tables: +----------------------------+ | Tables_in_amavisquarantine | +----------------------------+ | maddr | | msgrcpt | | msgrcpt01 | | msgs | | msgs01 | | quarantine | | quarantine01 | +----------------------------+ For some reason I don't want maddr to be duplicated... well, it might be convenient anyway to have N maddr tables too keep them small. * sent a message and it went to the default tables * amavisd reload (sorry I don't reload the daemon that often ;-)) * sent a message and it went to the *01 tables >> Are (My)SQL connections closed and reopened when amavisd received a SIGHUP? > > A new process is started completely from afresh. ... and MySQL connections are closed and reopened with the new configuration. So, since the amavisd reload does stop all traffic through amavisd processes/threads, this quick patch can be applied without creating data inconsistencies in the RDBMS. I don't know about implications on penpals feature. (not used here) I did the test on a 2.5.0-pre1, that is what I had ready to modify in the lab. For now I can automate the tableset rotation with a crontab that changes the .conf and reloads amavis. Even if this request doesn't become a feature, we can cope with this little patch by hand. Ciao, Paolo ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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/
