List Info

Thread: spamassassin results in mail headers




spamassassin results in mail headers
user name
2006-09-29 09:24:30
I have the same problem with amavis ans spamassasin.

my local.cf is :


Code:
--------------------
    # This is the right place to customize your installation
of SpamAssassin.

  #

  # See 'perldoc Mail::SpamAssassin::Conf' for details of
what can be

  # tweaked.

  #

  # Only a small subset of options are listed below

  #

 
############################################################
###############

  

  #   Add *****SPAM***** to the Subject header of spam
e-mails

  #

  rewrite_header Subject ****SPAM(_SCORE_)****

  

  #   Save spam messages as a message/rfc822 MIME attachment
instead of

  #   modifying the original message (0: off, 2: use
text/plain instead)

  #

  report_safe 0

  use_terse_report 1

  report_header 1

  

  add_header spam Flag _YESNOCAPS_

  autolearn=_AUTOLEARN_ version=_VERSION_

  add_header all Level _STARS(*)_

  add_header all Checker-Version SpamAssassin _VERSION_
(_SUBVERSION_) on _HOSTNAME_

  add_header all Status "_YESNO_, score=_SCORE_
required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_
version=_VERSION_"

  

  #   Set which networks or hosts are considered 'trusted'
by your mail

  #   server (i.e. not spammers)

  #

  # trusted_networks 212.17.35.

  

  

  #   Set file-locking method (flock is not safe over NFS,
but is faster)

  #

  # lock_method flock

  

  

  #   Set the threshold at which a message is considered
spam (default: 5.0)

  #

  # required_score 5.0

  

  #   Use Bayesian classifier (default: 1)

  #

  use_bayes 1

  use_razor2 1

  

  #   Bayesian classifier auto-learning (default: 1)

  #

  bayes_auto_learn 1

  

  #   Set headers which may provide inappropriate cues to
the Bayesian

  #   classifier

  #

  # bayes_ignore_header X-Bogosity

  # bayes_ignore_header X-Spam-Flag

  # bayes_ignore_header X-Spam-Status

  

  # Indique dans quelles langues nous recevons des mails.

  # Les autres langues auront un malus.

  #ok_languages fr en

  

  

  

  # Adresses considérées comme du spam (ou à refuser 

  #blacklist_from *microsoft.com

  
--------------------




and my 50-user


Code:
--------------------
    use strict;

  

  #

  # Place your configuration directives here.  They will
override those in

  # earlier files.

  #

  # See /usr/share/doc/amavisd-new/ for documentation and
examples of

  # the directives you can use in this file

  #

  

  ## GENERAL

  #Les lignes qui indiquent le nom de domaine et
l'utilisateur

  $myhostname = 'myhost.mydomain.com';

  $mydomain   = 'mydomain.com';

  $daemon_user   = 'amavis';

  $daemon_group  = 'amavis';

  #$MYHOME        = '/var/lib/amavis';

  

  #

  # Section III - Logging

  #

  

  # true (e.g. 1) => syslog;  false (e.g. 0) =>
logging to file

  $DO_SYSLOG = 1;                   # (defaults to 0)

  #$SYSLOG_LEVEL = 'user.info';     # (facility.priority,
default 'mail.info')

  

  # Log file (if not using syslog)

  $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

  # 1: args passed from client, some more interesting
messages

  # 2: virus scanner output, timing

  # 3: server, client

  # 4: decompose parts

  # 5: more debug details

  $log_level = 2;           # (defaults to 0)

  

  #Pour renvoyer les mails scannés sur le serveur

  $forward_method = 'smtp:127.0.0.1:10025'; # where to
forward checked mail

  $notify_method = $forward_method; # where to submit
notifications

  

  #Pour que le serveur supporte la charge

  $max_servers = 5; # number of pre-forked children (default
2)

  $max_requests = 15; # retire a child after that many
accepts (default 10)

  

  $child_timeout=10*60; # abort child if it does not
complete each task in n sec

  # (default: 8*60 seconds)

  

  #Ne pas permettre le relais

  $relayhost_is_client = 0; # (defaults to false)

  

  #Bloquer les connections à l'interface locale

  $inet_socket_bind = '127.0.0.1'; # limit socket bind to
loopback interface

  # (default is '127.0.0.1')

  inet_acl = qw( 127.0.0.1 ); # allow SMTP access only
from localhost IP

  # (default is qw( 127.0.0.1 ) )

  

  $relayhost_is_client = 0; # (defaults to false)

  

  #Si on trouve un virus remplacer le mail par un autre, si
c'est une adresse émail bannie, on renvoi un mail d'erreur,
si c'est un spam ou un mauvais entête le

  mail continue normalement sa trajectoire mais sont sujet
est changé :

  

  $final_virus_destiny = D_DISCARD; # (defaults to D_BOUNCE)

  $final_banned_destiny = D_BOUNCE; # (defaults to D_BOUNCE)

  $final_spam_destiny = D_PASS; # (defaults to D_REJECT)

  $final_bad_header_destiny = D_PASS; # (defaults to
D_PASS), D_BOUNCE suggested

  

  

  #On veut que la personne qui a envoyé le mail soit avertie
:

  $warnvirussender = 1; # (defaults to false (undef))

  

  #On veut que celui qui a envoyé un mail et qui est banni
soit aussi averti :

  #$warnbannedsender = 1; # (defaults to false (undef))

  

  

  #On veut que ceux a qui étaient destinés les mails
reçoivent des mails d'avertissement :

  $warnvirusrecip = 1; # (defaults to false (undef))

  $warnbannedrecip = 1; # (defaults to false (undef))

  

  #On indique les tags a rajouter dans les mails scannés par
l'antivirus :

  # Add X-Virus-Scanned header field to mail?

  $X_HEADER_TAG = 'X-Virus-Scanned'; # (default: undef)

  # Leave empty to add no header # (default: undef)

  $X_HEADER_LINE = "by $myversion (Ubuntu) at
$mydomain";

  

  

  #On n'enlève pas les entêtes comme quoi le mail a déjà été
scanné si c'est le cas :

  $remove_existing_x_scanned_headers = 0; # leave existing
X-Virus-Scanned alone

  $remove_existing_spam_headers = 0; # remove existing spam
headers if

  

  

  #On indique qu'il n'y a pas de fichiers bannis, comme cela
cela permet l'envoi de fichiers .exe, .com, .bat, mais ils
restent quand même scannés :

  

  

  $banned_filename_re = new_RE(

  # qr'^UNDECIPHERABLE$', # is or contains any
undecipherable components

  # qr'.[^.]*.(exe|vbs|pif|scr|bat|cmd|com|dll)$'i, # some
double extensions

  # qr'[{}]', # curly braces in names (serve as Class ID
extensions - CLSID)

  # qr'..(vbs|pif|scr|bat|cmd|com)$'i, # banned extension -
basic

  #
qr'..(ade|adp|bas|bat|chm|cmd|com|cpl|crt|exe|hlp|hta|inf|i
ns|isp|js|

  #
jse|lnk|mdb|mde|msc|msi|msp|mst|pcd|pif|reg|scr|sct|shs|shb|
vb|

  # vbe|vbs|wsc|wsf|wsh)$'ix, # banned extension - long

  # qr'..(mim|b64|bhx|hqx|xxe|uu|uue)$'i, # banned
extension - WinZip? vulnerab.

  # qr'^.(zip|lha|tnef|cab)$'i, # banned file(1) types

  # qr'^.exe$'i, # banned file(1) types

  # qr'^application/x-msdownload$'i, # banned MIME types

  # qr'^application/x-msdos-program$'i,

  # qr'^message/partial$'i, qr'^message/external-body$'i, #
block rfc2046

  );

  

  

  #On indique les quotas pour SpamAssassin :

  $sa_tag_level_deflt = -100; # add spam info headers if at,
or above that level

  $sa_tag2_level_deflt = 7; # add 'spam detected' headers at
that level

  $sa_kill_level_deflt = 99; # triggers spam evasive actions

  

  #$remove_existing_x_scanned_headers = 0;

  #$sa_spam_level_char = '+';

  #$sa_spam_report_header = 1;

  

  

  #SpamAssassin doit changer le sujet du message si il
dépasse $sa_tag2_level_deflt, et ajouter *SPAM* :

  $sa_spam_subject_tag = '****SPAM(_SCORE_)****'; #
(defaults to undef, disabled)

  

  

  #------------ Do not modify anything below this line
-------------

  1;  # insure a defined return

  
--------------------




Does it really a bug of amavis to not write header spam or
just my conf
are somes mistakes ?


-- 
freeman512

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )