On 9/28/07, Dave Augustus wrote:
> Thanks for a great product!!
>
> I maintain a number of mail servers. The configuration of those are all
> the same except for a few lines. If I put a file containing these
> exceptions in /etc, how would I tell amavisd to include it?
>
> Thanks,
>
> Dave
What version of amavisd-new?
In 2.5.2, you could use:
include_config_files('/etc/amavisd-custom.conf');
Search RELEASE_NOTES for this example.
In this example is some code that could be used in earlier versions
(not sure how far back):
http://www200.pair.com/mecham/spam/amavisd.conf-etch.txt
Ignore everything that is commented out. What is left is an example of
what could be placed in amavisd.conf.
Also, look at amavisd.conf-sample for another way:
# Want to execute additional configuration files from some directory?
#
#{ my($d) = '/etc/amavis/conf.d'; # do *.cf or *.conf files in this directory
# local(*D); opendir(D,$d) or die "Can't open dir $d: $!";
# my(@d) = sort grep {/\.(cf|conf)$/ && -f} map {/^(.*)$/,"$d/$1"} readdir(D);
# closedir(D) or die "Can't close $d: $!";
# for my $f (@d) {
# printf("Reading config file %s\n", $f); $!=0;
# if (defined(do $f)) {}
# elsif ($@ ne '') { die "Error in $f: $@" }
# elsif ($! != 0) { die "Error reading $f: $!" }
# }
#}
--
Gary V
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/