]> git.pld-linux.org Git - packages/amavisd-new.git/blobdiff - amavisd-new-config.patch
- cosmetics
[packages/amavisd-new.git] / amavisd-new-config.patch
index 664e982244ed16209827d5e131180af37e6e6cc6..14a02572a174602822da6557ed3de1a1e7cea46c 100644 (file)
---- amavisd-new-20020630/amavis/amavisd.conf.in~       Mon Sep 16 14:57:00 2002
-+++ amavisd-new-20020630/amavis/amavisd.conf.in        Mon Sep 16 15:00:11 2002
-@@ -118,7 +118,7 @@
- # yes - syslog, no - file logging
- $DO_SYSLOG = "@do_syslog@";
--$SYSLOG_LEVEL = "user.info";
-+$SYSLOG_LEVEL = "mail.info";
- # Directory to put log entries (if not using syslog)
- $LOGDIR = "@logdir@";
-@@ -147,11 +147,12 @@
- $child_timeout=3*60;  # abort child if it does not complete each task in n sec
--$daemon_user  = 'vscan';
-+$daemon_user  = 'amavis';
-+#$daemon_user  = 'vscan';
- #$daemon_user  = 'sweep';
--$daemon_group = 'sweep';
--# $pid_file = '/var/run/amavisd.pid';
--$pid_file = '/var/amavis/amavisd.pid';
-+$daemon_group = 'nobody';
-+#$daemon_group = 'sweep';
-+$pid_file = '/var/run/amavisd/amavisd.pid';
- #
- # Part III - Virus stuff
-@@ -351,7 +352,7 @@
- #@inet_acl = qw( 127.0.0.1 );      # allow SMTP access only from localhost
- # when MTA (one or more) is on a different host, use the following
--@inet_acl = qw(127/8 193.2.4.243 193.2.4.66);
-+@inet_acl = qw(127/8);
- $inet_socket_bind = undef;      # bind to all IP interfaces
- #   (and make sure you set $relayhost/$relayhost_is_client accordingly)
- #
+diff -urp amavis-v2.12.1.orig/amavisd.conf amavis-v2.12.1/amavisd.conf
+--- amavis-v2.12.1.orig/amavisd.conf   2020-11-13 13:55:37.000000000 +0100
++++ amavis-v2.12.1/amavisd.conf        2021-01-24 21:25:54.841592502 +0100
+@@ -10,32 +10,32 @@ use strict;
+ # COMMONLY ADJUSTED SETTINGS:
+ # @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
+-# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
++@bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
+ # $bypass_decode_parts = 1;         # controls running of decoders&dearchivers
+ # $myprogram_name = $0; # set to 'amavisd' or similar to avoid process name
+                         # truncation in /proc/<pid>/stat and ps -e output
+ $max_servers = 2;            # num of pre-forked children (2..30 is common), -m
+-$daemon_user  = 'vscan';     # (no default;  customary: vscan or amavis), -u
+-$daemon_group = 'vscan';     # (no default;  customary: vscan or amavis), -g
++$daemon_user  = 'amavis';     # (no default;  customary: vscan or amavis), -u
++$daemon_group = 'amavis';     # (no default;  customary: vscan or amavis), -g
+ $mydomain = 'example.com';   # a convenient default for other settings
+-# $MYHOME = '/var/amavis';   # a convenient default for other settings, -H
+-$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
++$MYHOME = '/var/spool/amavis';   # a convenient default for other settings, -H
++$TEMPBASE = "$MYHOME/runtime";   # working directory, needs to exist, -T
+ $ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by SA, etc.
+-$QUARANTINEDIR = '/var/virusmails';  # -Q
++$QUARANTINEDIR = '/var/spool/amavis/virusmails';  # -Q
+ # $quarantine_subdir_levels = 1;  # add level of subdirs to disperse quarantine
+ # $release_format = 'resend';     # 'attach', 'plain', 'resend'
+ # $report_format  = 'arf';        # 'attach', 'plain', 'resend', 'arf'
+ # $daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R
+-# $db_home   = "$MYHOME/db";      # dir for bdb nanny/cache/snmp databases, -D
++$db_home   = "$MYHOME/db";      # dir for bdb nanny/cache/snmp databases, -D
+ # $helpers_home = "$MYHOME/var";  # working directory for SpamAssassin, -S
+-# $lock_file = "$MYHOME/var/amavisd.lock";  # -L
+-# $pid_file  = "$MYHOME/var/amavisd.pid";   # -P
++$lock_file = "/var/run/amavisd/amavisd.lock";  # -L
++$pid_file  = "/var/run/amavisd/amavisd.pid";   # -P
+ #NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually
+ $log_level = 0;              # verbosity 0..5, -d
+@@ -55,7 +55,8 @@ $enable_dkim_signing = 1;    # load DKIM
+ @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
+                   10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
+-$unix_socketname = "$MYHOME/amavisd.sock";  # amavisd-release or amavis-milter
++#$unix_socketname = "/var/run/amavisd/amavisd.sock";  # amavisd-release or amavis-milter
++$unix_socketname = undef;        # disable listening on a unix socket
+                # option(s) -p overrides $inet_socket_port and $unix_socketname
+ $inet_socket_port = 10024;   # listen on this local TCP port(s)
+@@ -382,16 +383,15 @@ $banned_filename_re = new_RE(
+ #   qr/^(?:310|420)[,\s]*(?:.* <<< )?(.+?)(?: ; |$)/m ],
+ # settings for the SAVAPI3.conf: ArchiveScan=1, HeurLevel=2, MailboxScan=1
+-# ### http://www.clamav.net/
+-# ['ClamAV-clamd',
+-#   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
+-#   qr/\bOK$/m, qr/\bFOUND$/m,
+-#   qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
+-# # NOTE: run clamd under the same user as amavisd - or run it under its own
+-# #   uid such as clamav, add user clamav to the amavis group, and then add
+-# #   AllowSupplementaryGroups to clamd.conf;
+-# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
+-# #   this entry; when running chrooted one may prefer a socket under $MYHOME.
++['ClamAV-clamd',
++  \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"],
++  qr/\bOK$/, qr/\bFOUND$/,
++  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
++# NOTE: run clamd under the same user as amavisd - or run it under its own
++#   uid such as clamav, add user clamav to the amavis group, and then add
++#   AllowSupplementaryGroups to clamd.conf;
++# NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
++#   this entry; when running chrooted one may prefer a socket under $MYHOME.
+ # ### http://www.clamav.net/ and CPAN  (memory-hungry! clamd is preferred)
+ # # note that Mail::ClamAV requires perl to be build with threading!
+@@ -580,16 +580,21 @@ $banned_filename_re = new_RE(
+     # NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer
+     # see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783
+-  ### http://mks.com.pl/english.html
+-  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
+-    '-s {}/*', [0], [1,2],
+-    qr/--[ \t]*(.+)/m ],
++#  Moved to secondary scanner
++#  ### http://mks.com.pl/english.html
++#  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
++#    '-s {}/*', [0], [1,2],
++#    qr/--[ \t]*(.+)/m ],
+   ### http://mks.com.pl/english.html
+   ['MkS_Vir daemon', 'mksscan',
+     '-s -q {}', [0], [1..7],
+     qr/^... (\S+)/m ],
++  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
++      '-s {}/*', [0], [1,2],
++      qr/--[ \t]*(.+)/m ],
++
+ # ### http://www.nod32.com/,  version v2.52 (old)
+ # ['ESET NOD32 for Linux Mail servers',
+ #   ['/opt/eset/nod32/bin/nod32cli', 'nod32cli'],
This page took 0.068924 seconds and 4 git commands to generate.