Re: Train from Outlook?
I use a nifty tool called OLSpamCop to achieve this functionality with my Outlook. OLSpamCop is an Outlook plugin, it adds a new toolbar to Outlook and basically allows you to select an email, hit either a spam or ham button on the toolbar, and OLSpamCop will forward the email to an address you've specified in the options - a different address depending on which button you hit. It was designed for sending spam to SpamCop, but can be used to forward the spam (or ham) to any address you specify, eg. to your mail server and then to SpamAssassin for learning, eg. if you have set up this is spam and this is ham receiving email addresses on your server, as my server (MDaemon) does. When authenticated emails are forwarded to either of these addresses on my server, it automatically runs the Bayes learning on them accordingly. Thus this Outlook plugin works perfectly for me. You can find it at http://www.olspamcop.org/. Oh yeah, and it's freeware...! Cheers, Jeremy --- Christopher Mills [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
Train from Outlook?
Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server?Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
Re: Train from Outlook?
Christopher Mills wrote: Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it. Is Outlook talking to an Exchange server? If so, see http://sstern.ccim.com/index.php/2006/07/14/training-sitewide-spam-filters/ -- Steve
Re: Train from Outlook?
Christopher Mills wrote: Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it. There is a Summer of Code project for this but the guy's blog hasn't been updated in a while. http://code.google.com/soc/asf/appinfo.html?csaid=DF01D8A7A5E102D7
RE: Train from Outlook?
IMAP2MBOX You take the mail from the junk folder , run imap2mbox, take that mbox file and use it to train SA But Im not sure what you are referring to as far as the web server From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
RE: Train from Outlook?
Matt Yackley wrote/co-authored (not sure which), a plugin for Outlook that moves the messages to a public folder (spam and ham).. Maybe he'll share? From there, a central server could attach to those public folders, create RFC822 text files out of them, and then learn them via a simple perl script Which is what I do. Steven From: Jean-Paul Natola [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:02 AM To: Christopher Mills; users@spamassassin.apache.org Subject: RE: Train from Outlook? IMAP2MBOX You take the mail from the junk folder , run imap2mbox, take that mbox file and use it to train SA - But I'm not sure what you are referring to as far as the web server From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
RE: Train from Outlook?
What I do here, is that I tell my users to DRAG / MOVE any spam into a public folder, then I run IMAP2MBOX once that is done I then train SA using the mbox file-- Fairly simple , just make sure the users do NOT FORWARD the messages to the public folder -Original Message- From: Steven Manross [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 1:35 PM To: Jean-Paul Natola; Christopher Mills; users@spamassassin.apache.org Subject: RE: Train from Outlook? Matt Yackley wrote/co-authored (not sure which), a plugin for Outlook that moves the messages to a public folder (spam and ham).. Maybe he'll share? From there, a central server could attach to those public folders, create RFC822 text files out of them, and then learn them via a simple perl script Which is what I do. Steven From: Jean-Paul Natola [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:02 AM To: Christopher Mills; users@spamassassin.apache.org Subject: RE: Train from Outlook? IMAP2MBOX You take the mail from the junk folder , run imap2mbox, take that mbox file and use it to train SA - But I'm not sure what you are referring to as far as the web server From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
RE: Train from Outlook?
Your timing is perfect. I just implemented this yesterday! The script you may be looking for is imap-sa-learn.pl from: http://www.gagravarr.org/code/ The how-to is here: http://mail-archives.apache.org/mod_mbox/spamassassin-users/200406.mbox/[EMAIL PROTECTED] Users then drag (very important they drag the message to the folder to preserve headers) the messages into the appropriate public folder and are then processed by the script at the interval you set with a cron job. To fill in some of the missing blanks You create 2 new public folders. The how-to called them HAM and SPAM. All my users know what SPAM is, but explaining the concept of HAM proved futile for some reason so I just renamed the folder NOT-SPAM. Create a spamassassin user in AD and create an exchange mailbox. No mail is every sent to/from this user, it is only so the user has access permissions to the mailboxes. You may need to add a few perl modules to get this to work. The main one is Mail::IMAPClient. So just CPAN and then install Mail::IMAPClient The script is written with no-rebuild and --rebuild which is depreciated in current versions of SA, so just edit the script and change those to no-sync and sync otherwise the script will throw errors when you run it. Add the script to crontab e so it runs as often as you like. I run mine every hour. It automatically grabs each message, processes it with sa-learn, and then deletes it from the SPAM folder. If all this is greek, let me know and I will put together something a little more formal. This method will not work for OWA since you are not allowed to copy from your mailbox folders to a public folder in OWA. From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 5:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
RE: Train from Outlook?
SLOW DOWN!! Thats sounds like an awful lot when you can just let imap2mbox do it all. Imap2mbox does everything for you , except moving the messages to the folder http://www.byteplant.com/support/nospamtoday/howtolearnexchange.html http://www.byteplant.com/support/nospamtoday/contrib.html From: Ray Dzek [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 3:10 PM To: users@spamassassin.apache.org Subject: RE: Train from Outlook? Your timing is perfect. I just implemented this yesterday! The script you may be looking for is imap-sa-learn.pl from: http://www.gagravarr.org/code/ The how-to is here: http://mail-archives.apache.org/mod_mbox/spamassassin-users/200406.mbox/[EMAIL PROTECTED] Users then drag (very important they drag the message to the folder to preserve headers) the messages into the appropriate public folder and are then processed by the script at the interval you set with a cron job. To fill in some of the missing blanks You create 2 new public folders. The how-to called them HAM and SPAM. All my users know what SPAM is, but explaining the concept of HAM proved futile for some reason so I just renamed the folder NOT-SPAM. Create a spamassassin user in AD and create an exchange mailbox. No mail is every sent to/from this user, it is only so the user has access permissions to the mailboxes. You may need to add a few perl modules to get this to work. The main one is Mail::IMAPClient. So just CPAN and then install Mail::IMAPClient The script is written with no-rebuild and --rebuild which is depreciated in current versions of SA, so just edit the script and change those to no-sync and sync otherwise the script will throw errors when you run it. Add the script to crontab e so it runs as often as you like. I run mine every hour. It automatically grabs each message, processes it with sa-learn, and then deletes it from the SPAM folder. If all this is greek, let me know and I will put together something a little more formal. This method will not work for OWA since you are not allowed to copy from your mailbox folders to a public folder in OWA. From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 5:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
RE: Train from Outlook?
Imap2mbox resides on a windows server and only converts the imap format into an mbox format. Reading the links you provided there is an executable and external batch files to run on a windows machine. So that would/could be a solution if your environment is windows only. We are running a linux server with postfix + amavisd-new with SA and ClamAV to pre-process mail coming into our Exchange server. The solution I described is an all in one perl script that runs on the linux server. Imap-sa-learn.pl reads directly from the SPAM and NO-SPAM folders on the Exchange server, processes the messages, and removes them. There are no extra processes that need to be run on the Exchange server itself. So If you are running linux in front of your Exchange server my solution works. If you are running SA on a windows box your solution works. From: Jean-Paul Natola [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 12:24 PM To: users@spamassassin.apache.org Subject: RE: Train from Outlook? SLOW DOWN!! Thats sounds like an awful lot when you can just let imap2mbox do it all. Imap2mbox does everything for you , except moving the messages to the folder http://www.byteplant.com/support/nospamtoday/howtolearnexchange.html http://www.byteplant.com/support/nospamtoday/contrib.html From: Ray Dzek [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 3:10 PM To: users@spamassassin.apache.org Subject: RE: Train from Outlook? Your timing is perfect. I just implemented this yesterday! The script you may be looking for is imap-sa-learn.pl from: http://www.gagravarr.org/code/ The how-to is here: http://mail-archives.apache.org/mod_mbox/spamassassin-users/200406.mbox/[EMAIL PROTECTED] Users then drag (very important they drag the message to the folder to preserve headers) the messages into the appropriate public folder and are then processed by the script at the interval you set with a cron job. To fill in some of the missing blanks You create 2 new public folders. The how-to called them HAM and SPAM. All my users know what SPAM is, but explaining the concept of HAM proved futile for some reason so I just renamed the folder NOT-SPAM. Create a spamassassin user in AD and create an exchange mailbox. No mail is every sent to/from this user, it is only so the user has access permissions to the mailboxes. You may need to add a few perl modules to get this to work. The main one is Mail::IMAPClient. So just CPAN and then install Mail::IMAPClient The script is written with no-rebuild and --rebuild which is depreciated in current versions of SA, so just edit the script and change those to no-sync and sync otherwise the script will throw errors when you run it. Add the script to crontab e so it runs as often as you like. I run mine every hour. It automatically grabs each message, processes it with sa-learn, and then deletes it from the SPAM folder. If all this is greek, let me know and I will put together something a little more formal. This method will not work for OWA since you are not allowed to copy from your mailbox folders to a public folder in OWA. From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 5:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.
RE: Train from Outlook?
My setup is FREEBSD 5.4 SA EXIM CLAMAV filters all incoming mail, once SA CLAMAV clean the mail it goes to exchange The imap2mbox DOES NOT run on the exchange server, I run from my pc as follows D:\imap2mboximap2mbox.exe --path=public folders/ --folder=1spam --username=xx --pass=x That gives me the mbox I use to train sa- sa-learn --spam --mbox export.mbox Nevertheless better to have multiple ways to skin the cat I like this method because it does not require me to install anything at all on either server From: Ray Dzek [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 4:41 PM To: users@spamassassin.apache.org Subject: RE: Train from Outlook? Imap2mbox resides on a windows server and only converts the imap format into an mbox format. Reading the links you provided there is an executable and external batch files to run on a windows machine. So that would/could be a solution if your environment is windows only. We are running a linux server with postfix + amavisd-new with SA and ClamAV to pre-process mail coming into our Exchange server. The solution I described is an all in one perl script that runs on the linux server. Imap-sa-learn.pl reads directly from the SPAM and NO-SPAM folders on the Exchange server, processes the messages, and removes them. There are no extra processes that need to be run on the Exchange server itself. So If you are running linux in front of your Exchange server my solution works. If you are running SA on a windows box your solution works. From: Jean-Paul Natola [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 12:24 PM To: users@spamassassin.apache.org Subject: RE: Train from Outlook? SLOW DOWN!! Thats sounds like an awful lot when you can just let imap2mbox do it all. Imap2mbox does everything for you , except moving the messages to the folder http://www.byteplant.com/support/nospamtoday/howtolearnexchange.html http://www.byteplant.com/support/nospamtoday/contrib.html From: Ray Dzek [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 3:10 PM To: users@spamassassin.apache.org Subject: RE: Train from Outlook? Your timing is perfect. I just implemented this yesterday! The script you may be looking for is imap-sa-learn.pl from: http://www.gagravarr.org/code/ The how-to is here: http://mail-archives.apache.org/mod_mbox/spamassassin-users/200406.mbox/[EMAIL PROTECTED] Users then drag (very important they drag the message to the folder to preserve headers) the messages into the appropriate public folder and are then processed by the script at the interval you set with a cron job. To fill in some of the missing blanks You create 2 new public folders. The how-to called them HAM and SPAM. All my users know what SPAM is, but explaining the concept of HAM proved futile for some reason so I just renamed the folder NOT-SPAM. Create a spamassassin user in AD and create an exchange mailbox. No mail is every sent to/from this user, it is only so the user has access permissions to the mailboxes. You may need to add a few perl modules to get this to work. The main one is Mail::IMAPClient. So just CPAN and then install Mail::IMAPClient The script is written with no-rebuild and --rebuild which is depreciated in current versions of SA, so just edit the script and change those to no-sync and sync otherwise the script will throw errors when you run it. Add the script to crontab e so it runs as often as you like. I run mine every hour. It automatically grabs each message, processes it with sa-learn, and then deletes it from the SPAM folder. If all this is greek, let me know and I will put together something a little more formal. This method will not work for OWA since you are not allowed to copy from your mailbox folders to a public folder in OWA. From: Christopher Mills [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 5:07 AM To: users@spamassassin.apache.org Subject: Train from Outlook? Tell me something, is there a pluggin for outlook that would allow me to train spamassassin on the web server? Eg, messages come in, end up in my Junk Mail folder, can i somehow select them, and click a button with this 'addin' and have it find our web server and train spam assassin with the data in my local inbox? That would be a very cool addon if someone could develop it.