]> git.pld-linux.org Git - packages/amavisd-new.git/blobdiff - amavisd-new-config.patch
- release 7
[packages/amavisd-new.git] / amavisd-new-config.patch
index 064b45938617ce2eb3712cd71dcf8d3cf03e9c8a..8047e000b5e4f1aeb8d19791f50810cd2628e8be 100644 (file)
-diff -ur amavisd-new-20021227.orig/amavisd amavisd-new-20021227/amavisd
---- amavisd-new-20021227.orig/amavisd  Mon Dec 30 17:36:10 2002
-+++ amavisd-new-20021227/amavisd       Tue Jan  7 18:00:57 2003
-@@ -214,7 +214,7 @@
+diff -urN amavisd-new-20030616.org/amavisd.conf amavisd-new-20030616/amavisd.conf
+--- amavisd-new-20030616.org/amavisd.conf      Mon Dec  1 21:43:19 2003
++++ amavisd-new-20030616/amavisd.conf  Mon Dec  1 21:44:53 2003
+@@ -51,17 +51,22 @@
+ # $MYHOME serves as a quick default for some other configuration settings.
+ # More refined control is available with each individual setting further down.
+ # $MYHOME is not used directly by the program. No trailing slash!
+-#$MYHOME = '/var/lib/amavis';   # (default is '/var/amavis')
++$MYHOME = '/var/spool/amavis/runtime';   # (default is '/var/amavis')
+ # $mydomain serves as a quick default for some other configuration settings.
+ # More refined control is available with each individual setting further down.
+ # $mydomain is never used directly by the program.
+-$mydomain = 'example.com';      # (no useful default)
++# $mydomain = 'example.com';      # (no useful default)
++
++# This seems to be prefixed to host's domain name.
++# You may get mail rejects of virus information as send from not
++# existing host ( virusalert@localhost.whatever.your.domain.is )
++$mydomain = 'mail.whatever.your.domain.is';      # (no useful default)
+ # Set the user and group to which the daemon will change if started as root
+ # (otherwise just keeps the UID unchanged, and these settings have no effect):
+-$daemon_user  = 'vscan';      # (no default;  customary: vscan or amavis)
+-$daemon_group = 'sweep';      # (no default;  customary: vscan or amavis)
++$daemon_user  = 'amavis';
++$daemon_group = 'amavis';
+ # Runtime working directory (cwd), and a place where
+ # temporary directories for unpacking mail are created.
+@@ -141,7 +146,8 @@
+ # and see further down what these two lookup lists really mean.
  #
- # Receiving mail related
--# $unix_socketname = '/var/amavis/amavisd.sock'; # traditional amavis client protocol
-+# $unix_socketname = '/var/spool/amavis/runtime/amavisd.sock'; # traditional amavis client protocol
- # $inet_socket_port = 10024;      # accept SMTP on this TCP port
- $inet_socket_bind = '127.0.0.1';  # limit socket bind to loopback interface
-@@ -223,7 +223,7 @@
- $gets_addr_in_quoted_form = 0;
- # Temporary directory
--$TEMPBASE = "/var/amavis";
-+$TEMPBASE = "/var/spool/amavis/runtime";
- $notify_method  = 'smtp:127.0.0.1:10025';
- $forward_method = 'smtp:127.0.0.1:10025';
-diff -ur amavisd-new-20021227.orig/amavisd.conf amavisd-new-20021227/amavisd.conf
---- amavisd-new-20021227.orig/amavisd.conf     Fri Dec 27 16:04:17 2002
-+++ amavisd-new-20021227/amavisd.conf  Tue Jan  7 18:00:02 2003
-@@ -40,7 +40,7 @@
- $daemon_group = 'amavis';     # (no default)
- # Runtime directory (no trailing slash, defaults to '/var/amavis')
--$TEMPBASE = '/var/amavis';
-+$TEMPBASE = '/var/spool/amavis/runtime';
- # MTA SETTINGS, UNCOMMENT AS APPROPRIATE, defaults to 'smtp:127.0.0.1:10025'
-@@ -59,7 +59,7 @@
- #$notify_method = 'pipe:flags=q argv=/usr/sbin/sendmail -i -f ${sender} -- ${recipient}';
--#$daemon_chroot_dir = '/var/amavis';    # (default is undef => do not chroot)
-+#$daemon_chroot_dir = '/var/spool/amavis';    # (default is undef => do not chroot)
- #$pid_file  = "$TEMPBASE/amavisd.pid";  # (default: "$TEMPBASE/amavisd.pid")
- #$lock_file = "$TEMPBASE/amavisd.lock"; # (default: "$TEMPBASE/amavisd.lock")
-@@ -221,12 +221,12 @@
- # assigning new text to template variables, or by reading template text
- # from files:
+ # @bypass_virus_checks_acl = qw( . );  # uncomment to DISABLE anti-virus code
+-# @bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code
++@bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code
++
  #
--# $notify_sender_templ      = read_text('/var/amavis/notify_sender.txt');
--# $notify_virus_sender_templ= read_text('/var/amavis/notify_virus_sender.txt');
--# $notify_virus_admin_templ = read_text('/var/amavis/notify_virus_admin.txt');
--# $notify_virus_recips_templ= read_text('/var/amavis/notify_virus_recips.txt');
--# $notify_spam_sender_templ = read_text('/var/amavis/notify_spam_sender.txt');
--# $notify_spam_admin_templ  = read_text('/var/amavis/notify_spam_admin.txt');
-+# $notify_sender_templ      = read_text('/var/spool/amavis/notify_sender.txt');
-+# $notify_virus_sender_templ= read_text('/var/spool/amavis/notify_virus_sender.txt');
-+# $notify_virus_admin_templ = read_text('/var/spool/amavis/notify_virus_admin.txt');
-+# $notify_virus_recips_templ= read_text('/var/spool/amavis/notify_virus_recips.txt');
-+# $notify_spam_sender_templ = read_text('/var/spool/amavis/notify_spam_sender.txt');
-+# $notify_spam_admin_templ  = read_text('/var/spool/amavis/notify_spam_admin.txt');
- # Treat envelope sender address as unreliable and don't send 
- # sender notification if name(s) of detected virus(es) match the list.
-@@ -255,9 +255,9 @@
- #   for compatibility, which in turn defaults to undef (empty) )
+ # Any setting can be changed with a new assignment, so make sure
+ # you do not unintentionally override these settings further down!
+@@ -177,7 +183,7 @@
+ # directly, or read from a file, one domain per line; comments and empty lines
+ # are ignored, a dot before a domain name implies its subdomains:
  #
- $mailfrom_notify_sender    = '';   # null reserse path. Should not be changed!
--$mailfrom_notify_admin     = 'virusalert@example.com';
--$mailfrom_notify_recip     = 'virusalert@example.com';
--$mailfrom_notify_spamadmin = 'spam.police@example.com';
-+$mailfrom_notify_admin     = 'virusalert@localhost';
-+$mailfrom_notify_recip     = 'virusalert@localhost';
-+$mailfrom_notify_spamadmin = 'spam.police@localhost';
- # 'From' HEADER FIELD for sender and admin notifications.
- # This should be a replyable address, see rfc1894. Not to be confused
-@@ -285,7 +285,7 @@
- # $virus_admin = undef;   # do not send virus admin notifications (default)
- # $virus_admin = {'not.example.com' => '', '.' => 'virusalert@example.com'};
--$virus_admin = 'virus-admin@example.com';
-+$virus_admin = 'virus-admin@localhost';
- # equivalent to $virus_admin, but for spam admin notifications:
- # $spam_admin = undef;    # do not send spam admin notifications (default)
-@@ -309,7 +309,7 @@
+-#read_hash(\%local_domains, '/var/amavis/local_domains');
++#read_hash(\%local_domains, '/var/spool/amavis/local_domains'); # PLD path
+ #or alternatively(B), using a list of regular expressions:
+ # $local_domains_re = new_RE( qr'[@.]example\.com$'i );
+@@ -265,7 +271,7 @@
+ #$SYSLOG_LEVEL = 'user.info';     # (defaults to 'mail.info')
+ # Log file (if not using syslog)
+-$LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
++# $LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
+ #NOTE: levels are not strictly observed and are somewhat arbitrary
+ # 0: startup/exit/failure messages, viruses detected
+@@ -274,7 +280,7 @@
+ # 3: server, client
+ # 4: decompose parts
+ # 5: more debug details
+-$log_level = 2;                 # (defaults to 0)
++# $log_level = 2;               # (defaults to 0)
+ # Customizable template for the most interesting log file entry (e.g. with
+ # $log_level=0) (take care to properly quote Perl special characters like '\')
+@@ -406,21 +412,21 @@
+ # Bounces or rejects produce non-delivery status notification anyway.
+ # Notify virus sender?
+-#$warnvirussender = 1;        # (defaults to false (undef))
++$warnvirussender = 1; # (defaults to false (undef))
+ # Notify spam sender?
+-#$warnspamsender = 1; # (defaults to false (undef))
++$warnspamsender = 1;  # (defaults to false (undef))
+ # Notify sender of banned files?
+-#$warnbannedsender = 1;       # (defaults to false (undef))
++$warnbannedsender = 1;        # (defaults to false (undef))
+ # Notify sender of syntactically invalid header containing non-ASCII characters?
+ #$warnbadhsender = 1; # (defaults to false (undef))
+ # Notify virus (or banned files) RECIPIENT?
+ #  (not very useful, but some policies demand it)
+-#$warnvirusrecip = 1; # (defaults to false (undef))
+-#$warnbannedrecip = 1;        # (defaults to false (undef))
++$warnvirusrecip = 1;  # (defaults to false (undef))
++$warnbannedrecip = 1; # (defaults to false (undef))
+ # Notify also non-local virus/banned recipients if $warn*recip is true?
+ #  (including those not matching local_domains*)
+@@ -510,7 +516,8 @@
  #   or a directory (no trailing slash)
- # (the default value is undef, meaning no quarantine)
+ #   (the default value is undef, meaning no quarantine)
  #
 -$QUARANTINEDIR = '/var/virusmails';
++# $QUARANTINEDIR = '/var/virusmails';
 +$QUARANTINEDIR = '/var/spool/amavis/virusmails';
  
+ #$virus_quarantine_method = "local:virus-%i-%n";    # default
+ #$spam_quarantine_method  = "local:spam-%b-%i-%n";  # default
+@@ -1166,12 +1173,12 @@
+ # ['Sophos SAVI', \&sophos_savi ],
+ # ### http://clamav.elektrapro.com/
+-# ['Clam Antivirus-clamd',
+-#   \&ask_daemon, ["CONTSCAN {}\n", '/var/amavis/clamd'],
+-#   qr/\bOK$/, qr/\bFOUND$/,
+-#   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
+-# # NOTE: run clamd under the same user as amavisd,
+-# # match the socket name in clamav.conf to the socket name in this entry
++  ['Clam Antivirus-clamd',
++    \&ask_daemon, ["CONTSCAN {}\n", '/var/lib/clamav/clamd.socket'],
++    qr/\bOK$/, qr/\bFOUND$/,
++    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
++
++# NOTE: match the socket name in clamav.conf to the socket name in this entry
+ # ### http://www.openantivirus.org/
+ # ['OpenAntiVirus ScannerDaemon (OAV)',
+@@ -1281,9 +1288,10 @@
+     '-sec -nex {}', [0], [100],
+     qr/was infected by virus (.+)/ ],
+-  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
+-    '-s {}/*', [0], [1,2],
+-    qr/--[ \t]*(.+)/ ], 
++#  Moved to secondary scanner
++#  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
++#    '-s {}/*', [0], [1,2],
++#    qr/--[ \t]*(.+)/ ], 
+   ['MkS_Vir daemon',
+     'mksscan', '-s -q {}', [0], [1..7],
+@@ -1400,6 +1408,10 @@
+ # # sub {$ENV{SAV_IDE}='/usr/local/sav'},
+ # ],
++   ['MkS_Vir for Linux (beta)', ['mks32','mks'],
++     '-s {}/*', [0], [1,2],
++     qr/--[ \t]*(.+)/ ],
++
+ );
  
- # A finer control of quarantining is available through variable
-@@ -638,7 +638,7 @@
- # a hash lookup table can be read from a file,
- # one address per line, comments and empty lines are permitted:
- #
--read_hash(\%whitelist_sender, '/var/amavis/whitelist_sender');
-+read_hash(\%whitelist_sender, '/var/spool/amavis/whitelist_sender');
  
- # ... or set directly:
- map { $whitelist_sender{lc($_)}=1 } (qw(
-Only in amavisd-new-20021227: amavisd~
This page took 0.077956 seconds and 4 git commands to generate.