[Postfixbuch-users] Spamassassin mit amavisd-new

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Do Okt 23 10:13:41 CEST 2003


* Andreas G?nther <info at linuxmaker.de>:

> was hast Du denn dann gemacht, daß das läuft und Spams markiert? Ich wäre 
> wirklich dankbar, wenn ich wüßte welche Kommentarzeichen ich in der 
> amavis.conf streichen muß, damit im Header angezeigt wird, das SA 
> drübergelaufen ist und im Spam-Fall die Mail als Spam gekemzeichnet.

Ich kann dir mal unseren Patch gegen die amavisd.conf schicken.
Der enthält ales was ich angefasst habe (klar, ist ja auch ein Patch)

Anbei

-- 
Ralf Hildebrandt (Im Auftrag des Referat V a)   Ralf.Hildebrandt at charite.de
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-916
Referat V a - Kommunikationsnetze -             AIM.  ralfpostfix
-------------- nächster Teil --------------
--- amavisd.conf.orig	Tue Oct  7 14:29:20 2003
+++ amavisd.conf	Tue Oct  7 14:33:28 2003
@@ -56,12 +56,12 @@
 # $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 = 'charite.de';      # (no useful default)
 
 # Set the user and group to which the daemon will change if started as root
 # (otherwise just keep 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';	# (no default;  customary: vscan or amavis)
+$daemon_group = 'amavis';	# (no default;  customary: vscan or amavis)
 
 # Runtime working directory (cwd), and a place where
 # temporary directories for unpacking mail are created.
@@ -89,8 +89,8 @@
 # POSTFIX, or SENDMAIL in dual-MTA setup, or EXIM V4
 # (set host and port number as required; host can be specified
 # as IP address or DNS name (A or CNAME, but MX is ignored)
-#$forward_method = 'smtp:127.0.0.1:10025';  # where to forward checked mail
-#$notify_method = $forward_method;          # where to submit notifications
+$forward_method = 'smtp:127.0.0.1:25';  # where to forward checked mail
+$notify_method = $forward_method;          # where to submit notifications
 
 # NOTE: The defaults (above) are good for Postfix or dual-sendmail. You MUST
 #       uncomment the approprate settings below if using other setups!
@@ -123,8 +123,8 @@
 # feeding amavisd, e.g. with Postfix the 'Max procs' field in the
 # master.cf file, like the '2' in the:  smtp-amavis unix - - n - 2 smtp
 #
-$max_servers  =  2;   # number of pre-forked children          (default 2)
-$max_requests = 10;   # retire a child after that many accepts (default 10)
+$max_servers  = 20;   # number of pre-forked children          (default 2)
+$max_requests = 40;   # retire a child after that many accepts (default 10)
 
 $child_timeout=5*60;  # abort child if it does not complete each task in n sec
                       # (default: 8*60 seconds)
@@ -214,7 +214,7 @@
 
 # SMTP SERVER (INPUT) PROTOCOL SETTINGS (e.g. with Postfix, Exim v4, ...)
 #   (used when MTA is configured to pass mail to amavisd via SMTP or LMTP)
-$inet_socket_port = 10024;        # accept SMTP on this local TCP port
+$inet_socket_port = 10025;        # accept SMTP on this local TCP port
                                   # (default is undef, i.e. disabled)
 # multiple ports may be provided: $inet_socket_port = [10024, 10026, 10028];
 
@@ -271,7 +271,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 '\')
@@ -375,9 +375,9 @@
 #            and other dual-MTA setups, which can't reject original client SMTP
 #            session, as the mail has already been enqueued.
 
-$final_virus_destiny      = D_BOUNCE;  # (defaults to D_BOUNCE)
-$final_banned_destiny     = D_BOUNCE;  # (defaults to D_BOUNCE)
-$final_spam_destiny       = D_REJECT;  # (defaults to D_REJECT)
+$final_virus_destiny  = D_DISCARD;  # (defaults to D_BOUNCE)
+$final_banned_destiny = D_DISCARD;  # (defaults to D_BOUNCE)
+$final_spam_destiny   = D_DISCARD;  # (defaults to D_REJECT)
 $final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested
 
 # Alternatives to consider for spam:
@@ -420,7 +420,7 @@
 
 # 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)
 
 
 # Treat envelope sender address as unreliable and don't send sender
@@ -473,7 +473,7 @@
 #
 $mailfrom_notify_admin     = "virusalert\@$mydomain";
 $mailfrom_notify_recip     = "virusalert\@$mydomain";
-$mailfrom_notify_spamadmin = "spam.police\@$mydomain";
+$mailfrom_notify_spamadmin = "postmaster\@$mydomain";
 
 # 'From' HEADER FIELD for sender and admin notifications.
 # This should be a replyable address, see rfc1894. Not to be confused
@@ -577,7 +577,7 @@
 # similar for spam
 # (the default value is undef, meaning no quarantine)
 #
-$spam_quarantine_to = 'spam-quarantine';
+#$spam_quarantine_to = 'spam-quarantine';
 #$spam_quarantine_to = "spam-quarantine\@$mydomain";
 #$spam_quarantine_to = new_RE(                 # per-recip multiple quarantines
 #  [qr'^(.*)@example\.com$'i => 'spam-${1}@example.com'],
@@ -891,7 +891,7 @@
 #   qr'\.example\.com$'i );
 #
 $blacklist_sender_re = new_RE(
-    qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou|greatcasino)@'i,
+    qr'^(offers|cheapbenefits|earnmoney|foryou|greatcasino)@'i,
     qr'^(investments|lose_weight_today|market.alert|money2you|MyGreenCard)@'i,
     qr'^(new\.tld\.registry|opt-out|opt-in|optin|saveonlsmoking2002k)@'i,
     qr'^(specialoffer|specialoffers|stockalert|stopsnoring|wantsome)@'i,
@@ -980,10 +980,10 @@
 
 
 # Maximum recursion level for extraction/decoding (0 or undef disables limit)
-$MAXLEVELS = 14;		# (default is undef, no limit)
+$MAXLEVELS = 20;		# (default is undef, no limit)
 
 # Maximum number of extracted files (0 or undef disables the limit)
-$MAXFILES = 1500;		# (default is undef, no limit)
+$MAXFILES = 4000;		# (default is undef, no limit)
 
 # For the cumulative total of all decoded mail parts we set max storage size
 # to defend against mail bombs. Even though parts may be deleted (replaced
@@ -1048,7 +1048,7 @@
 # of the option local_tests_only. See Mail::SpamAssassin man page.
 # If set to 1, no tests that require internet access will be performed.
 #
-$sa_local_tests_only = 1;   # (default: false)
+#$sa_local_tests_only = 1;   # (default: false)
 #$sa_auto_whitelist = 1;    # turn on AWL (default: false)
 
 $sa_mail_body_size_limit = 64*1024;  # don't waste time on SA if mail is larger


Mehr Informationen über die Mailingliste Postfixbuch-users