Hi Thomas, This is actually one of the questions addressed quite frequently on the list; have a look at the list archives and you'll find a lot of interesting information.
Using SA with Outlook and/or exchange can be quite "interesting", here's what I've been doing with different setups: Exchange Server + Outlook clients: ==================================== I've set up public folders (one for spam, one for good mails) on the exchange server and have users drag/drop badly classified mail to these folders. A script on the SA box downloads from these public folders via imap and feeds them into sa-learn. On my exchange server this works just fine; however, there've been reports that on some other sites exchange removes the internet headers when downloading the messages via imap. I don't think anyone has found a reason (or better: a solution) for that yet, you'll have to verify that it preserves all information at your site. see http://marc.theaimsgroup.com/?l=spamassassin-talk&m=104806917615490&w=2 in the list archives for the perl script used on the SA box for downloading/learning from these public folders. No Exchange Server, Outlook / Outlook express clients: ====================================================== The best setup I've found for this combination is to have the clients forward the spam/ham messages AS ATTACHMENTS to the SA box. Again, with the Mail clients I've looked at (Outlook 2000 SR-1 and Outlook Express 6.00.2800.1123) this works fine and preserves all header information in the forwarded mail. Just as with the exchange server setup above, there have been reports by other users that the forwared mails don't contain internet headers - I haven't seen that problem myself. One problem I have seen: if you set the message type of the "wrapper" message to "text only", the html part of an attached multipart message will be removed. So, make sure html format is selected for the wrapper message (will be default for most users anyway). sa-learn can't process these "forward as attachment" spam/ham mails directly. You need to process the mailboxes to extract the original messages and feed just these to sa-learn without the "wrapper" message they're attached to. Since I found no example code for this, I hacked up a script myself. I think I'll attach the current version again, there are some changes since I last posted it: The script sends an autoreply if it finds an email without attached message. Put some text like "please forward your spam messages as attachments, otherwise the spamfilder doesn't get the original message including all header information. If you need assistance, please contact ......" into the autoreply message. Don't forget to put Subject and From headers into the message file. >>For users using Outlook 2000, get them to use >> (double-click to open the mail in its own window) >> -> Actions >> -> Resend This Message >>and bounce it to the mailbox address. Don't do this, it obviously doesn't work too well; all header information including sender and recipient are lost. >Is this bad? Yes >Can I do anything to put the original spam messages from >Outlook into the learner? See above :-) Bye, Martin
sa-learn-spamforward
Description: sa-learn-spamforward