Banned Rules
A. Schulze
sca at andreasschulze.de
Fri Jul 25 07:51:08 CEST 2014
Deeztek Support:
> can I add the rules to a separate file and simply point to that file
> from the amavis config file?
yes.
my amavisd.conf just only onclude other files:
$ cat /etc/amavisd.conf
use strict;
# definiertes Startverzeichnis
chdir('/var/amavis') or die 'oops: chdir(/var/amavis) failed';
# definierte Umgebung
$ENV{'LANG'} = 'de';
{ my($d) = '/etc/amavis/'; # do *.conf files in this directory
local(*D); opendir(D,$d) or die "Can't open dir $d: $!";
my(@d) = sort grep {/\.conf$/ && -f} map {/^(.*)$/,"$d/$1"} readdir(D);
closedir(D) or die "Can't close $d: $!";
include_config_files($_) for (@d);
}
1;
in /etc/amavis/ there are multiple files (may be ordered by numbered
filenames)
$ cat /etc/amavis/00-amavis-default.conf
...
$ cat /etc/amavis/10-myconfig.conf
use strict;
# be verbose
$log_level = 3;
1;
Hope that helps.
Andreas
More information about the amavis-users
mailing list