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

Reply via email to