I do this here using fetchmail. I created public folders on the Exchange system for people to drop Spam, Ham and False-Positives into.
Create three aliases on your gateway that point to sa-learn, for sendmail these will work spamforget: |"/usr/local/bin/sa-learn --no-rebuild --forget" spamlearn: |"/usr/local/bin/sa-learn --no-rebuild --spam" hamlearn: |"/usr/local/bin/sa-learn --no-rebuild --ham" Installed fetchmail on my gateway system and created three .fetchmailrc files. One for spam, one for ham, and one to forget. Here's the one I use for spam: # # Feeds email from the public spam folder into sa-learn set postmaster "yourpostmaster" set no bouncemail set no spambounce set properties "" defaults proto imap poll mailserver.goes.here proto imap user "your-nt-domain/your-username/your-mailboxname" pass "yourpasswordhere" is spamlearn here folder "Your\Public\Folder\Info" keep fetchall no rewrite # Remove the "keep" if you want it to delete stuff when it's done. I have it because I have two mail gateways here that both do this one has the keep the other doesn't. In your /etc/crontab or in some users crontab on your gateway add something like 15 */4 * * * your_user /usr/local/bin/fetchmail -f .fetchmailrc-spam 45 */4 * * * your_user /usr/local/bin/fetchmail -f .fetchmailrc-forget 55 */4 * * * your_user /usr/local/bin/fetchmail -f .fetchmailrc-ham This method works great for me. Other people have had problems with it because their exchange server is changing the original mail headers. Our doesn't so this works fine other than adding 1 received line to the message. > -----Original Message----- > From: Timothy Donahue [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 23, 2003 12:36 PM > To: [EMAIL PROTECTED] > Subject: [SAtalk] sa-learn from Exchange 2000 > > > How can I process messages from our exchange server as spam? I have a > whole bunch of messages that I have collected, that I would > like to scan > that have come through our SA filter recently. Most of them have a > bunch of random words that were inserted at the end of the message. > > Does anyone have a set of scripts that can pull the messages from a > public folder, or is there an easier way to scan this mail? > > Thanks for your help. > > Tim Donahue > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign > up for IBM's > Free Linux Tutorials. Learn everything from the bash shell > to sys admin. > Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click > _______________________________________________ > Spamassassin-talk mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk