Andreas wrote:

> Hi!

> I'm running an anti-virus/anti-spam Mailserver with the following software:

> postfix 2.2.10
> amavisd-new 2.3.3-r2
> spamassassin 3.1.0
> dovecot (IMAP-Server) 1.0_beta8
> clamav 0.88.2
> on gentoo-Linux with kernel 2.6.16.

> Everything seems to work fine. Due to my anti-spam settings in 
> amavisd.conf...

> ~~~~~~~
> $sa_tag_level_deflt  = 1.0;

The $sa_tag_level_deflt determines at what level the headers are
inserted. Set this to a lower number (like -999).

> $sa_tag2_level_deflt = 4.0;
> $sa_kill_level_deflt = 7.0;
> ~~~~~~~

> ...every message with a spam-level above 7.0 is forwarded to my 
> "quarantine"-Account. This messages also have the desired X-Spam-Header 
> inserted, which offers information on the Status, Score and Level of the 
> mail in question.

Good, so it appears one of the conditions has been met - the
recipient's address/domain is considered 'local' (it is included in
@local_domains_maps or other similar lookup) - this is required. Since
this mail scored at $sa_tag_level_deflt or higher, another condition
has been met. At least for the stuff that ends up in your quarantine
all conditions have been met.

> Now I do want to have this header inserted into all of my incoming 
> mails, thus giving the user (especially me) some more information on the 
> process of spam-scanning. Exactly this does not work. Neither the 
> X-Spam-Info-Header is inserted, although...

> ~~~~~~~~~~~~~~~~~~
> $sa_spam_report_header = 1
> ~~~~~~~~~~~~~~~~~~

This inserts a very verbose report if message scores at
$sa_tag2_level_deflt or higher (only). This is not inserted for
non-spam messages (but X-Spam-Score, X-Spam-Level and
X-Spam-Status can be made to appear for all messages). There was a
thread that gave a workaround to include the verbose report in non-spam:
http://marc.theaimsgroup.com/?l=amavis-user&m=113985038223442&w=2
but I'm not certain it's the verbose report you really after.

> ...is set, nor does the subject-change take place, although I set

> ~~~~~~~~~~~~~~~~~~~~~
> $sa_spam_subject_tag = '***SPAM*** ';
> $sa_spam_modifies_subj = 1;
> ~~~~~~~~~~~~~~~~~~~~~

This should modify the Subject for mail addressed to local_domains and
scores at $sa_tag2_level_deflt or higher, and is delivered to a
recipient (quarantined mail would not be delivered to a recipient).

> Meanwhile, the header information "X-Virus-Scanned: amavisd-new at 
> dawin.de" is found in every single mail.

> Any ideas what's wrong with my setup?

This is the most frequently asked question on the list. See the
section: "No spam-related headers inserted?"

http://www.ijs.si/software/amavisd/#faq-spam

> Thanks in advance,
> Andreas

There was a case recently where everything seemed to be in place
yet no X-Spam headers were present on mail delivered to mailboxes.
The only conclusion I came up with in that case was the headers
were removed after the fact. Still don't really know however.

Gary V


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to