Mailing List Archive

[SpamAssassin Wiki] Updated: ProcmailToForwardMail
Date: 2004-06-20T15:00:21
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,6 +1,14 @@
= How do I use SpamAssassin with procmail to forward mail and to Bayes training? =

-This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net). This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc. Note that after logging into the server, you can find the path for spamassassin by typing {{{which spamassassin}}}.
+This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net). This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc.
+
+The idea is for procmail on the first server to run each message through SpamAssassin, and then forward the message on to the private address.
+
+The trick for Bayes training is to add some extra procmail rules to specify special processing for training messages. The following is based on having a catchall address for all mail sent to example.com, so I can trigger the bayes training by sending mail to spam@example.com and ham@example.com. It is left as an exercise for the reader to create an alternative script that triggers based on a passphrase added to the subject, and uses formail to remove that passphrase before passing the message to sa-learn.
+
+Note that this setup still only works passably with Outlook and Exchange, because even resending the message causes a new Message-ID header to be created and the old Received headers to be lost. Other headers are still carried over. To trigger Bayes learning from Outlook on false negatives, choose Action: Resend this Message (you have to remove any From and CC headings and change the To field to spam@example.com). Note that nearly every other mailer (except for AOL) supports real redirects; see [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect].
+
+Note that after logging into the server, you can find the path for spamassassin by typing {{{which spamassassin}}}.

{{{
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:06:21
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -55,3 +55,29 @@
! privateaddress@example.net # Forward mail to my non-publicized address

}}}
+
+
+For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients
+
+'''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
+'''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
+'''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
+'''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
+Microsoft Outlook 97
+Double-click on the message so it opens in a new window. Click on Tools->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
+Microsoft Outlook 2000
+Double-click on the message so it opens in a new window. Click on Actions->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
+Microsoft Outlook Express
+It does not appear to have a redirect option. (Dave Goldsmith and Alex Bates)
+Netscape Communicator 4.x and 7.x
+They don't appear to have a redirect option.
+Pine
+For a single message, highlight the message and press "b" to bounce it. Enter the target address and press enter.
+For multiple messages, select all the messages you'd like to bounce with either ":" to select them one at a time, or ";" to select multiple messages by message number, subject, body text, etc. Once selected, press "a", then "b" to Apply the Bounce command to all of them. Enter the target email address. Once done, press ";", then "a" to Unselect All selected messages.
+
+More info can be found at: http://www.itc.virginia.edu/desktop/email/pine/bounce.html
+
+Sylpheed
+Click on the message, go to the "Message" menu, choose "Redirect", fill in the "To:" address, and press send. Alternately, right click in the message and choose "Redirect" from the popup menu, fill in the "To:" address, and press send. (Dave Goldsmith)
+
+Thanks to William Stearns <wstearns@pobox.com> for this [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect info].
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:07:11
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -59,10 +59,10 @@

For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients

-'''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
-'''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
-'''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
-'''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
+* '''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
+* '''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
+* '''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
+* '''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
Microsoft Outlook 97
Double-click on the message so it opens in a new window. Click on Tools->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
Microsoft Outlook 2000
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:08:16
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -59,10 +59,10 @@

For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients

-* '''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
-* '''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
-* '''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
-* '''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
+ * '''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
+ * '''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
+ * '''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
+ * '''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
Microsoft Outlook 97
Double-click on the message so it opens in a new window. Click on Tools->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
Microsoft Outlook 2000
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:13:40
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -57,27 +57,17 @@
}}}


-For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients
+For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients. Note that for all redirections, you'll want to clear away all To: and Cc: entries and then add spam@example.com to the To:, in order to avoid resending the spam to another victim.

* '''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
* '''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
* '''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
* '''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
-Microsoft Outlook 97
-Double-click on the message so it opens in a new window. Click on Tools->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
-Microsoft Outlook 2000
-Double-click on the message so it opens in a new window. Click on Actions->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
-Microsoft Outlook Express
-It does not appear to have a redirect option. (Dave Goldsmith and Alex Bates)
-Netscape Communicator 4.x and 7.x
-They don't appear to have a redirect option.
-Pine
-For a single message, highlight the message and press "b" to bounce it. Enter the target address and press enter.
-For multiple messages, select all the messages you'd like to bounce with either ":" to select them one at a time, or ";" to select multiple messages by message number, subject, body text, etc. Once selected, press "a", then "b" to Apply the Bounce command to all of them. Enter the target email address. Once done, press ";", then "a" to Unselect All selected messages.
-
-More info can be found at: http://www.itc.virginia.edu/desktop/email/pine/bounce.html
-
-Sylpheed
-Click on the message, go to the "Message" menu, choose "Redirect", fill in the "To:" address, and press send. Alternately, right click in the message and choose "Redirect" from the popup menu, fill in the "To:" address, and press send. (Dave Goldsmith)
+ * '''Microsoft Outlook 97''': Double-click on the message so it opens in a new window. Click on Tools-Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
+ * '''Microsoft Outlook 2000 & higher''': Double-click on the message so it opens in a new window. Click on Actions->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
+ * '''Microsoft Outlook Express''': It does not appear to have a redirect option. (Dave Goldsmith and Alex Bates)
+ * '''Netscape Communicator 4.x and 7.x''': They don't appear to have a redirect option.
+ * '''Pine''': For a single message, highlight the message and press "b" to bounce it. Enter the target address and press enter. For multiple messages, select all the messages you'd like to bounce with either ":" to select them one at a time, or ";" to select multiple messages by message number, subject, body text, etc. Once selected, press "a", then "b" to Apply the Bounce command to all of them. Enter the target email address. Once done, press ";", then "a" to Unselect All selected messages. More can be found at: http://www.itc.virginia.edu/desktop/email/pine/bounce.html
+ * '''Sylpheed''': Click on the message, go to the "Message" menu, choose "Redirect", fill in the "To:" address, and press send. Alternately, right click in the message and choose "Redirect" from the popup menu, fill in the "To:" address, and press send. (Dave Goldsmith)

Thanks to William Stearns <wstearns@pobox.com> for this [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect info].
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:33:07
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,14 +1,14 @@
-= How do I use SpamAssassin with procmail to forward mail and to Bayes training? =
+= How do I use SpamAssassin with procmail to forward mail and to mistake-based Bayes training? =

This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net). This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc.

The idea is for procmail on the first server to run each message through SpamAssassin, and then forward the message on to the private address.

-The trick for Bayes training is to add some extra procmail rules to specify special processing for training messages. The following is based on having a catchall address for all mail sent to example.com, so I can trigger the bayes training by sending mail to spam@example.com and ham@example.com. It is left as an exercise for the reader to create an alternative script that triggers based on a passphrase added to the subject, and uses formail to remove that passphrase before passing the message to sa-learn.
+The trick for Bayes training is to add some extra procmail rules to specify special processing for false negatives (i.e., spam that SpamAssassin didn't catch).

-Note that this setup still only works passably with Outlook and Exchange, because even resending the message causes a new Message-ID header to be created and the old Received headers to be lost. Other headers are still carried over. To trigger Bayes learning from Outlook on false negatives, choose Action: Resend this Message (you have to remove any From and CC headings and change the To field to spam@example.com). Note that nearly every other mailer (except for AOL) supports real redirects; see [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect].
+This script uses mistake-based training for false negatives. That is, it assumes that SpamAssassin can correctly autolearn on enough ham and spam to seed the Bayes database. Then, when Bayes incorrectly sees a spam message as not spam (or not spammy enough), the user can train the database by redirecting the message to be learned as spam. Although the same redirection scheme could be used to train on false positives (i.e., legimate mail incorrectly seen as spam), it's likely more effective to just ManualWhitelist mail from that sender.

-Note that after logging into the server, you can find the path for spamassassin by typing {{{which spamassassin}}}.
+The following is based on having at least two addresses (publicaddress@example.com and spam@example.com) trigger the same procmail script. In most vanity domain setups, all addresses are processed by the same procmail. The script needs to be edited to include your real addresses and domain. You also need to confirm the path for spamassassin and sa-learn, which you can find, after logging into the server, by typing {{{which spamassassin}}}.

{{{

@@ -39,7 +39,7 @@


# Mail that is very likely spam (>10) can be saved on the server
-# (not forwarded), of by moving the # down one line, even dropped
+# (not forwarded), or by moving the # down one line, even dropped
# on the floor. Note that dropping mail on the floor is a *bad*
# idea unless you really, really believe no false positives will
# have a score great than 10. If you want all mail forwarded,
@@ -56,6 +56,8 @@

}}}

+On your client, you'd then likely want to filter mail with "X-Spam-Level: *****" into a Likely Spam folder. The advantage of leaving mail with a score of 10 or higher on the server is that it makes it easier to find false positives, since they generally score between 5 and 10.
+

For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients. Note that for all redirections, you'll want to clear away all To: and Cc: entries and then add spam@example.com to the To:, in order to avoid resending the spam to another victim.

@@ -70,4 +72,7 @@
* '''Pine''': For a single message, highlight the message and press "b" to bounce it. Enter the target address and press enter. For multiple messages, select all the messages you'd like to bounce with either ":" to select them one at a time, or ";" to select multiple messages by message number, subject, body text, etc. Once selected, press "a", then "b" to Apply the Bounce command to all of them. Enter the target email address. Once done, press ";", then "a" to Unselect All selected messages. More can be found at: http://www.itc.virginia.edu/desktop/email/pine/bounce.html
* '''Sylpheed''': Click on the message, go to the "Message" menu, choose "Redirect", fill in the "To:" address, and press send. Alternately, right click in the message and choose "Redirect" from the popup menu, fill in the "To:" address, and press send. (Dave Goldsmith)

-Thanks to William Stearns <wstearns@pobox.com> for this [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect info].
+Thanks to William Stearns <wstearns@pobox.com> for this redirection [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect info].
+
+= Contributors
+[http://www.dankohn.com Dan Kohn] dan@dankohn.com
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:45:39
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,14 +1,10 @@
-= How do I use SpamAssassin with procmail to forward mail and to mistake-based Bayes training? =
+= How do I use SpamAssassin with procmail to forward mail and to do mistake-based Bayes training? =

-This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net). This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc.
+This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net). This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc. The idea is for procmail on the first server to run each message through SpamAssassin, and then forward the message on to the private address.

-The idea is for procmail on the first server to run each message through SpamAssassin, and then forward the message on to the private address.
+The trick for Bayes training is to add some extra procmail rules to specify special processing for false negatives (i.e., spam that SpamAssassin didn't catch). This script uses mistake-based training for false negatives. That is, it assumes that SpamAssassin can correctly autolearn on enough ham and spam to seed the Bayes database. Then, when SpamAssassin incorrectly marks a spam message as not spam, the user can train the database by redirecting the message to be learned as spam. Although a similar redirection scheme could be used to train on false positives (i.e., legimate mail incorrectly seen as spam), it's likely more effective to just ManualWhitelist mail from that legitimate sender.

-The trick for Bayes training is to add some extra procmail rules to specify special processing for false negatives (i.e., spam that SpamAssassin didn't catch).
-
-This script uses mistake-based training for false negatives. That is, it assumes that SpamAssassin can correctly autolearn on enough ham and spam to seed the Bayes database. Then, when Bayes incorrectly sees a spam message as not spam (or not spammy enough), the user can train the database by redirecting the message to be learned as spam. Although the same redirection scheme could be used to train on false positives (i.e., legimate mail incorrectly seen as spam), it's likely more effective to just ManualWhitelist mail from that sender.
-
-The following is based on having at least two addresses (publicaddress@example.com and spam@example.com) trigger the same procmail script. In most vanity domain setups, all addresses are processed by the same procmail. The script needs to be edited to include your real addresses and domain. You also need to confirm the path for spamassassin and sa-learn, which you can find, after logging into the server, by typing {{{which spamassassin}}}.
+The following is based on having at least two addresses (publicaddress@example.com and spam@example.com) trigger the same procmail script. In most vanity domain setups, all addresses are processed by the same procmail script. The script needs to be edited to include your real addresses and domain. You also need to confirm the path for spamassassin and sa-learn, which you can find, after logging into the server, by typing {{{which spamassassin}}}.

{{{

@@ -51,13 +47,13 @@
mail/tenplusspam


-:0 # All spam with a score less than 10
-! privateaddress@example.net # Forward mail to my non-publicized address
+# Forward all mail with a score less than 10 to my non-publicized address
+:0
+! privateaddress@example.net

}}}

-On your client, you'd then likely want to filter mail with "X-Spam-Level: *****" into a Likely Spam folder. The advantage of leaving mail with a score of 10 or higher on the server is that it makes it easier to find false positives, since they generally score between 5 and 10.
-
+On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder. False Positives rarely score higher than 10. The advantage of leaving mail with a score of 10 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam. You can then ManualWhitelist those false positives.

For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients. Note that for all redirections, you'll want to clear away all To: and Cc: entries and then add spam@example.com to the To:, in order to avoid resending the spam to another victim.
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T15:50:29
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -34,26 +34,26 @@
| /usr/bin/spamassassin


-# Mail that is very likely spam (>10) can be saved on the server
+# Mail that is very likely spam (>15) can be saved on the server
# (not forwarded), or by moving the # down one line, even dropped
# on the floor. Note that dropping mail on the floor is a *bad*
# idea unless you really, really believe no false positives will
-# have a score great than 10. If you want all mail forwarded,
+# have a score great than 15. If you want all mail forwarded,
# just add #'s in front of each of these lines:

:0
-* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
+* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null
mail/tenplusspam


-# Forward all mail with a score less than 10 to my non-publicized address
+# Forward all mail with a score less than 15 to my non-publicized address
:0
! privateaddress@example.net

}}}

-On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder. False Positives rarely score higher than 10. The advantage of leaving mail with a score of 10 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam. You can then ManualWhitelist those false positives.
+On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder. False Positives rarely score higher than 15. The advantage of leaving mail with a score of 15 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam. You can then ManualWhitelist those false positives.

For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients. Note that for all redirections, you'll want to clear away all To: and Cc: entries and then add spam@example.com to the To:, in order to avoid resending the spam to another victim.
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T16:04:30
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -38,7 +38,7 @@
# (not forwarded), or by moving the # down one line, even dropped
# on the floor. Note that dropping mail on the floor is a *bad*
# idea unless you really, really believe no false positives will
-# have a score great than 15. If you want all mail forwarded,
+# have a score greater than 15. If you want all mail forwarded,
# just add #'s in front of each of these lines:

:0
@@ -70,5 +70,5 @@

Thanks to William Stearns <wstearns@pobox.com> for this redirection [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect info].

-= Contributors
+== Contributors ==
[http://www.dankohn.com Dan Kohn] dan@dankohn.com
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T17:55:58
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -24,7 +24,7 @@
| sa-learn --spam

:0
- mail/spam
+ spam
}

# Send all other mail through SpamAssassin
@@ -44,7 +44,7 @@
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null
-mail/tenplusspam
+almost-certainly-spam


# Forward all mail with a score less than 15 to my non-publicized address
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-20T23:22:51
Editor: DanKohn <dan@dankohn.com>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

no comment

Change Log:

------------------------------------------------------------------------------
@@ -31,7 +31,7 @@

:0fw: spamassassin.lock
* < 256000
-| /usr/bin/spamassassin
+| spamassassin


# Mail that is very likely spam (>15) can be saved on the server
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-21T10:02:36
Editor: 68.4.10.228 <>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

moved resending instructions to new page

Change Log:

------------------------------------------------------------------------------
@@ -55,20 +55,7 @@

On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder. False Positives rarely score higher than 15. The advantage of leaving mail with a score of 15 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam. You can then ManualWhitelist those false positives.

-For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains off of. Here are directions for redirecting from different clients. Note that for all redirections, you'll want to clear away all To: and Cc: entries and then add spam@example.com to the To:, in order to avoid resending the spam to another victim.
-
- * '''AOL's integrated email client''': Redirecting mail is not available. (Dave Goldsmith)
- * '''Eudora''': Select the message, go to the "Message" menu, choose redirect, fill in the address, and choose send. (Brian Corcoran and Erik Wheeler)
- * '''Evolution''': Select the message. In the "Actions" menu, choose the "Forward" submenu (not "Forward message", the "Forward" submenu). Pick "Redirect", fill in the "To" field, and press "Send". (Johannes Ullrich)
- * '''OS/X Mail.app''': With the email message open or selected, go to Mail's 'Message' menu and select 'Bounce to sender' or 'Redirect'. If you use this frequently, go to the "View" menu, choose "Customize toolbar", and add a button for "Redirect". (Marion Bates)
- * '''Microsoft Outlook 97''': Double-click on the message so it opens in a new window. Click on Tools-Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
- * '''Microsoft Outlook 2000 & higher''': Double-click on the message so it opens in a new window. Click on Actions->Resend This Message. A warning will appear about you not being the original sender of the message. Click Yes. A message window appears. Update the To: field and click on 'Send'. (Dave Goldsmith)
- * '''Microsoft Outlook Express''': It does not appear to have a redirect option. (Dave Goldsmith and Alex Bates)
- * '''Netscape Communicator 4.x and 7.x''': They don't appear to have a redirect option.
- * '''Pine''': For a single message, highlight the message and press "b" to bounce it. Enter the target address and press enter. For multiple messages, select all the messages you'd like to bounce with either ":" to select them one at a time, or ";" to select multiple messages by message number, subject, body text, etc. Once selected, press "a", then "b" to Apply the Bounce command to all of them. Enter the target email address. Once done, press ";", then "a" to Unselect All selected messages. More can be found at: http://www.itc.virginia.edu/desktop/email/pine/bounce.html
- * '''Sylpheed''': Click on the message, go to the "Message" menu, choose "Redirect", fill in the "To:" address, and press send. Alternately, right click in the message and choose "Redirect" from the popup menu, fill in the "To:" address, and press send. (Dave Goldsmith)
-
-Thanks to William Stearns <wstearns@pobox.com> for this redirection [http://www.stearns.org/doc/spamassassin-setup.current.html#redirect info].
+For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains from. See ResendingMailWithHeaders for details of how to do this.

== Contributors ==
[http://www.dankohn.com Dan Kohn] dan@dankohn.com
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-21T10:31:38
Editor: MalteStretz <mss@apache.org>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

Split up the paragraphs here too into single lines

Change Log:

------------------------------------------------------------------------------
@@ -1,10 +1,19 @@
= How do I use SpamAssassin with procmail to forward mail and to do mistake-based Bayes training? =

-This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net). This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc. The idea is for procmail on the first server to run each message through SpamAssassin, and then forward the message on to the private address.
-
-The trick for Bayes training is to add some extra procmail rules to specify special processing for false negatives (i.e., spam that SpamAssassin didn't catch). This script uses mistake-based training for false negatives. That is, it assumes that SpamAssassin can correctly autolearn on enough ham and spam to seed the Bayes database. Then, when SpamAssassin incorrectly marks a spam message as not spam, the user can train the database by redirecting the message to be learned as spam. Although a similar redirection scheme could be used to train on false positives (i.e., legimate mail incorrectly seen as spam), it's likely more effective to just ManualWhitelist mail from that legitimate sender.
-
-The following is based on having at least two addresses (publicaddress@example.com and spam@example.com) trigger the same procmail script. In most vanity domain setups, all addresses are processed by the same procmail script. The script needs to be edited to include your real addresses and domain. You also need to confirm the path for spamassassin and sa-learn, which you can find, after logging into the server, by typing {{{which spamassassin}}}.
+This procmail script is designed for people who have their mail forwarded through a server (e.g, example.com) but then read their mail on a non-publicized account on a different server (e.g., privateaddress@example.net).
+This is quite common for folks who have a vanity domain name but then read their mail through an office Exchange server, home DSL email account, etc.
+The idea is for procmail on the first server to run each message through SpamAssassin, and then forward the message on to the private address.
+
+The trick for Bayes training is to add some extra procmail rules to specify special processing for false negatives (i.e., spam that SpamAssassin didn't catch).
+This script uses mistake-based training for false negatives.
+That is, it assumes that SpamAssassin can correctly autolearn on enough ham and spam to seed the Bayes database.
+Then, when SpamAssassin incorrectly marks a spam message as not spam, the user can train the database by redirecting the message to be learned as spam.
+Although a similar redirection scheme could be used to train on false positives (i.e., legimate mail incorrectly seen as spam), it's likely more effective to just ManualWhitelist mail from that legitimate sender.
+
+The following is based on having at least two addresses (publicaddress@example.com and spam@example.com) trigger the same procmail script.
+In most vanity domain setups, all addresses are processed by the same procmail script.
+The script needs to be edited to include your real addresses and domain.
+You also need to confirm the path for spamassassin and sa-learn, which you can find, after logging into the server, by typing {{{which spamassassin}}}.

{{{

@@ -53,9 +62,15 @@

}}}

-On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder. False Positives rarely score higher than 15. The advantage of leaving mail with a score of 15 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam. You can then ManualWhitelist those false positives.
-
-For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding. Forwarding loses all of the critical header information, which is much of what Bayes trains from. See ResendingMailWithHeaders for details of how to do this.
+On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder.
+False Positives rarely score higher than 15.
+The advantage of leaving mail with a score of 15 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam.
+You can then ManualWhitelist those false positives.
+
+For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding.
+Forwarding loses all of the critical header information, which is much of what Bayes trains from.
+See ResendingMailWithHeaders for details of how to do this.

== Contributors ==
-[http://www.dankohn.com Dan Kohn] dan@dankohn.com
+
+ * DanKohn
[SpamAssassin Wiki] Updated: ProcmailToForwardMail [ In reply to ]
Date: 2004-06-24T10:03:51
Editor: 66.120.210.130 <>
Wiki: SpamAssassin Wiki
Page: ProcmailToForwardMail
URL: http://wiki.apache.org/spamassassin/ProcmailToForwardMail

Added comment to procmail recipe

Change Log:

------------------------------------------------------------------------------
@@ -22,7 +22,9 @@
#VERBOSE=yes
#LOGABSTRACT=all

-# Feed redirected spam to sa-learn
+# Feed redirected spam to sa-learn, and also store a copy in a folder called spam.
+# This folder of false negatives could be useful if we needed to rebuild our Bayes
+# database in the future.

:0
* ^To:.*spam@example.com
@@ -62,10 +64,7 @@

}}}

-On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder.
-False Positives rarely score higher than 15.
-The advantage of leaving mail with a score of 15 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam.
-You can then ManualWhitelist those false positives.
+On your mail client, you'd then likely want to filter mail with a score of 5 or higher (i.e., where "X-Spam-Level: *****") into a Likely Spam folder. False Positives rarely score higher than 15. The advantage of leaving mail with a score of 15 or higher on the server is that it makes it easier to find false positives in the Likely Spam folder without being overwhelmed by hundreds of obvious spam. You can then ManualWhitelist those false positives.

For the mistake-based training, it's critical to redirect (or bounce) the message, rather than forwarding.
Forwarding loses all of the critical header information, which is much of what Bayes trains from.