how to resend ham messages?

Leon Kolchinsky lkolchin at univ.haifa.ac.il
Mon Nov 6 06:52:15 EST 2006


Hello All,

I've implemented Spamassassin solution on my Cyrus+Postfix+Amavis-new+Web-cyradm system.

I'm getting spam to special "spamtrainer mailbox".
There I do a filtering for any "False Positives" Ham messages that SA marked as a spam, and move them to "ham" folder.

After I did this, I make some learning on "ham messages" and "spam messages" with sa-learn and razor-report/razor-revoke.

Now I want to resend these "ham" (legitimate mails) to their original recipients.

How could I do that?

This is an example headers of such "ham message":
---------------------------------------------------

Return-Path: <MAILER-DAEMON at mail.edu.mydomain.ac.il>
Received: from mail.edu.mydomain.ac.il ([unix socket])
	by mail.edu.mydomain.ac.il (Cyrus v2.2.3) with LMTP; Thu, 26 Oct 2006 16:10:16 +0200
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1])
	by mail.edu.mydomain.ac.il (Postfix) with ESMTP id CC19C1FD8E
	for <spamcop at edu.mydomain.ac.il>; Thu, 26 Oct 2006 16:10:15 +0200 (IST)
X-Envelope-To: <mathcntr at mail.edu.mydomain.ac.il>
X-Envelope-From: <nyirrr123 at bezeqint.net>
X-Quarantine-id: <spam-ea13a04d8a019298b079b26dcb0f5b9f-20061026-161015-23914-10>
Received: from mr1.mydomain.ac.il (mr1.mydomain.ac.il [132.74.1.39])
	by mail.edu.mydomain.ac.il (Postfix) with ESMTP id 4F5351C0DC
	for <mathcntr at const.mydomain.ac.il>; Thu, 26 Oct 2006 16:10:11 +0200 (IST)
Received: from localhost (mr1.mydomain.ac.il [127.0.0.1])
	by mr1.mydomain.ac.il (Postfix) with ESMTP id 120825386E
	for <mathcntr at const.mydomain.ac.il>; Thu, 26 Oct 2006 15:52:56 +0200 (IST)
Received: from mr1.mydomain.ac.il ([127.0.0.1])
 by localhost (mr1.mydomain.ac.il [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 16060-01-4 for <mathcntr at const.mydomain.ac.il>;
 Thu, 26 Oct 2006 15:52:50 +0200 (IST)
Received: from sa15.bezeqint.net (sa15.bezeqint.net [192.115.104.30])
	by mr1.mydomain.ac.il (Postfix) with ESMTP id B1FBD53868
	for <mathcntr at const.mydomain.ac.il>; Thu, 26 Oct 2006 15:51:49 +0200 (IST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by sa15.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id D1B9A27F22
	for <mathcntr at const.mydomain.ac.il>; Thu, 26 Oct 2006 15:52:58 +0200 (IST)
X-Virus-Scanned: amavisd-new at bezeqint.net
Received: from sa15.bezeqint.net ([127.0.0.1])
	by localhost (sa15.bezeqint.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id erDWzs+zRvs4 for <mathcntr at const.mydomain.ac.il>;
	Thu, 26 Oct 2006 15:52:47 +0200 (IST)
Received: from family71 (bzq-88-154-249-180.red.bezeqint.net [88.154.249.180])
	by sa15.bezeqint.net (Bezeq International SMTP out Mail Server) with SMTP
	for <mathcntr at const.mydomain.ac.il>; Thu, 26 Oct 2006 15:52:47 +0200 (IST)
Message-ID: <000e01c6f906$2a30d080$b4f99a58 at family71>
From: "orly nuriani" <nyirrr123 at bezeqint.net>
To: <mathcntr at const.mydomain.ac.il>
Subject: =?windows-1255?B?6OX08SDk+Pnu5A==?=
Date: Thu, 26 Oct 2006 15:53:48 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_000A_01C6F916.ED0E6C60"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-Virus-Scanned: by amavisd-new at mydomain.ac.il
X-Spam-Status: Yes, hits=5.4 tag1=-999.0 tag2=5.0 kill=5.0 tests=BAYES_44,
 FROM_ENDS_IN_NUMS, HTML_MESSAGE, RAZOR2_CF_RANGE_51_100, RAZOR2_CHECK,
 ROUND_THE_WORLD
X-Spam-Level: *****
-----------------------

Any sample code (scripts) for resending this kind of "Ham" would be very welcome.



Best Regards,
Leon Kolchinsky



More information about the Info-cyrus mailing list