]> git.pld-linux.org Git - packages/amavisd-new.git/commitdiff
- Fixes in config:
authorMateusz Korniak <matkor@pld-linux.org>
Thu, 28 Aug 2003 11:34:12 +0000 (11:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- mks and clamav daemons are enabled by default as primary scanners
- mks and clamav shell scanners are enabled by default as secondary scanners
- warns about viruses are send now to receiver and (if possible) sender
- anti-spam system is turned off by default
- spam warning is send to sender (if a-spam system is turned on)

Changed files:
    amavisd-new-config.patch -> 1.8
    amavisd-new.spec -> 1.41

amavisd-new-config.patch
amavisd-new.spec

index 04cb0ea8619ee100a077ca2064bb920045e2bfa7..4ab5a628c4d7510cd22cbfacf49fc384502bfd48 100644 (file)
@@ -1,29 +1,20 @@
-diff -ur amavisd-new-20030314.orig/amavisd amavisd-new-20030314/amavisd
---- amavisd-new-20030314.orig/amavisd  Sat Mar 22 01:52:53 2003
-+++ amavisd-new-20030314/amavisd       Tue May  6 14:49:15 2003
-@@ -240,7 +240,7 @@
- $unicode_aware = $]>=5.008 && length("\x{263a}")==1 && eval { require Encode };
- # serves only as a quick default for other configuration settings
--$MYHOME = '/var/amavis';
-+$MYHOME = '/var/spool/amavis/runtime';
- $mydomain = '!change-mydomain-variable!.example.com';# purposely broken default
- # Create debugging output - yes: log to stderr; no: log to syslog/file
-diff -ur amavisd-new-20030314.orig/amavisd.conf amavisd-new-20030314/amavisd.conf
---- amavisd-new-20030314.orig/amavisd.conf     Fri Mar 21 18:19:23 2003
-+++ amavisd-new-20030314/amavisd.conf  Tue May  6 14:53:29 2003
-@@ -41,17 +41,17 @@
+diff -urN amavisd-new-20030616.orig/amavisd.conf amavisd-new-20030616/amavisd.conf
+--- amavisd-new-20030616.orig/amavisd.conf     Thu Aug 28 12:08:30 2003
++++ amavisd-new-20030616/amavisd.conf  Thu Aug 28 12:10:41 2003
+@@ -51,17 +51,20 @@
  # $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')
++$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)
++# 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 = 'localhost';      # (no useful default)
  
  # Set the user and group to which the daemon will change if started as root
@@ -35,7 +26,16 @@ diff -ur amavisd-new-20030314.orig/amavisd.conf amavisd-new-20030314/amavisd.con
  
  # Runtime working directory (cwd), and a place where
  # temporary directories for unpacking mail are created.
-@@ -164,7 +164,7 @@
+@@ -140,7 +143,7 @@
+ # and see further down what these two lookup lists really mean.
+ #
+ # @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
+ #
+ # Any setting can be changed with a new assignment, so make sure
+ # you do not unintentionally override these settings further down!
+@@ -176,7 +179,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:
  #
@@ -44,7 +44,16 @@ diff -ur amavisd-new-20030314.orig/amavisd.conf amavisd-new-20030314/amavisd.con
  
  #or alternatively(B), using a list of regular expressions:
  # $local_domains_re = new_RE( qr'[@.]example\.com$'i );
-@@ -297,12 +297,12 @@
+@@ -271,7 +274,7 @@
+ # 3: server, client
+ # 4: decompose parts
+ # 5: more debug details
+-$log_level = 2;                 # (defaults to 0)
++$log_level = 0;                 # (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 '\')
+@@ -310,12 +313,12 @@
  # or later; second argument is ignored otherwise. See PerlIO::encoding,
  # Encode::PerlIO and perluniintro man pages.
  #
@@ -61,9 +70,41 @@ diff -ur amavisd-new-20030314.orig/amavisd.conf amavisd-new-20030314/amavisd.con
 +# $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');
  
+ # If notification template files are collectively available in some directory,
+ # use read_l10n_templates which calls read_text for each known template.
+@@ -402,25 +405,25 @@
+ # 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*)
+-#$warn_offsite = 1;   # (defaults to false (undef), i.e. only notify locals)
++$warn_offsite = 1;    # (defaults to false (undef), i.e. only notify locals)
  
- # Here is an overall picture (sequence of events) of how pieces fit together
-@@ -468,7 +468,7 @@
+ # Treat envelope sender address as unreliable and don't send sender
+@@ -498,7 +501,7 @@
  #   or a directory (no trailing slash)
  #   (the default value is undef, meaning no quarantine)
  #
@@ -72,7 +113,7 @@ diff -ur amavisd-new-20030314.orig/amavisd.conf amavisd-new-20030314/amavisd.con
  
  #$virus_quarantine_method = "local:virus-%i-%n";    # default
  #$spam_quarantine_method  = "local:spam-%b-%i-%n";  # default
-@@ -835,7 +835,7 @@
+@@ -911,7 +914,7 @@
  # a hash lookup table can be read from a file,
  # one address per line, comments and empty lines are permitted:
  #
@@ -80,7 +121,60 @@ diff -ur amavisd-new-20030314.orig/amavisd.conf amavisd-new-20030314/amavisd.con
 +# read_hash(\%whitelist_sender, '/var/spool/amavis/whitelist_sender');
  
  # ... or set directly:
- map { $whitelist_sender{lc($_)}=1 } (qw(
-Only in amavisd-new-20030314: amavisd.conf.orig
-Only in amavisd-new-20030314: amavisd.conf.rej
-Only in amavisd-new-20030314: amavisd.conf~
+@@ -1152,12 +1155,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)',
+@@ -1241,13 +1244,18 @@
+     '-sec -nex {}', [0], [100],
+     qr/was infected by virus (.+)/ ],
+-  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
+-    '-s {}/*', [0], [1,2],
+-    qr/--[ \t]*(.+)/ ], 
+-
+-  ['MkS_Vir daemon',
+-    'mksscan', '-s -q {}', [0], [1..7],
+-    qr/^... (\S+)/ ],
++  #['MkS_Vir daemon',
++  #  'mksscan', '-s -q {}', [0], [1..7],
++  #  qr/^... (\S+)/ ],
++
++  ['MkS_Vir Daemon for Linux', 
++   'mkschk','-s {}/*', [0], [1,2],
++   qr/--[ \t]*(.+)/ ],
++
++  # Moved to secondary
++  #['MkS_Vir for Linux (beta)', ['mks32','mks'],
++  #  '-s {}/*', [0], [1,2],
++  #  qr/--[ \t]*(.+)/ ], 
+   ### http://www.nod32.com/
+   ['ESET Software NOD32', 'nod32',
+@@ -1346,6 +1354,10 @@
+   ['Trend Micro FileScanner', ['/etc/iscan/vscan','vscan'],
+     '-a {}', [0], qr/Found virus/, qr/Found virus (.+) in/ ],
++  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
++    '-s {}/*', [0], [1,2],
++    qr/--[ \t]*(.+)/ ], 
++
+ # Commented out because the name 'sweep' clashes with the Debian package of
+ # the same name. Make sure the correct sweep is found in the path when enabling
+ #
index d33c9a8c83ada4a610c85f58754eadf8e67a6f75..3c94637174fc123fee269390ad0571b17e9ecd6c 100644 (file)
@@ -1,21 +1,20 @@
 # TODO:
-# - fix mks interface 
-# - fix clamavis interface
+# - Add polish info mail templates
+# - Add triggered adding user clamav to group amavis (like mks does)
 
 %include       /usr/lib/rpm/macros.perl
 Summary:       A Mail Virus Scanner with SpamAssassin support - Daemon
 Summary(pl):   Antywirusowy skaner poczty elektronicznej z obs³ug± SpamAssasina - Demon
 Name:          amavisd-new
 Version:       20030616
-Release:       2.1
+Release:       2.4
 License:       GPL
 Group:         Applications/Mail
 Source0:       http://www.ijs.si/software/amavisd/%{name}-%{version}-p5.tar.gz
 # Source0-md5: 13c76432e957ccd302856f64526483a2
 Source1:       %{name}.init
 Patch0:                %{name}-config.patch
-# Patch1:              %{name}-bin.patch
-# Patch2:              %{name}-config-mks.patch
+# Patch1:         %{name}-bin.patch # I don't get perl and it has rejects
 Patch3:                %{name}-cpio-reads-tar.patch
 URL:           http://www.amavis.org/
 BuildRequires: arc
@@ -101,8 +100,7 @@ Pakiet ten zawiera back-end dla sendmaila.
 %prep
 %setup -q
 %patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
+#%%patch1 -p1
 %patch3 -p1
 
 %build
This page took 0.082288 seconds and 4 git commands to generate.