At 06:47 AM 2/11/2003, Ole Holm Nielsen wrote:
It appears that Justin is right: MIMEDefang apparently uses its own
rewriting in the script /etc/mail/mimedefang-filter and seemingly
ignores the /etc/mail/spamassassin/sa-mimedefang.cf config file
(or some of it ?).

MIMEDefang uses SpamAssassin to *check* mail only. Any parts of sa-mimedefang.cf related to checking mail *do* get used. However, remember that Sendmail and Mimedefang do not run as the individual user, so features like auto-whitelisting will not work.


Using the return values from spam_assassin_check(), you can have MD add any kind of markup you want, take different actions depending on which rules are tripped or how high the score is, etc.

I found a MIMEDefang solution by Kelson Vibber in the message:
   http://lists.roaringpenguin.com/pipermail/mimedefang/2002-July/001650.html
where one uses a function like in this example:
   action_change_header('Subject', $NewSubject);

For a simpler example you can look at the sample filters that come with MD. Also, if you're basing a filter off of this post and intend to do something special based on Razor, remember that Razor 2 trips a different rule, RAZOR2_CHECK.


Also, the bit about breaking the report into separate lines is no longer needed; someone pointed out a better way to handle it:
my $fixed_report = $report;
$fixed_report =~ s/\n+\z//g; # fixes for multiline header
$fixed_report =~ s/\n/\n\t/g; # to stop sendmail complaining
action_add_header("X-Spam-Report","$fixed_report");
In any case, further discussion of the filter should probably go over to the MIMEDefang lists.



Kelson Vibber
SpeedGate Communications <www.speed.net>




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to