znapper wrote:

Big question is, how do I do this? The server is set up to relay all mail
adressed to exhange-configured-domain.com and discard anything else.
I've tried to add the spamtrap user and tried to send mail to this user,
using the regular [EMAIL PROTECTED], only resulting
in a error message from the exchange system, telling me there is no such
user on that system. -Obviously (because the user only exist on the linux
server and the mail was relayed from the filter to the exchange system).

What I want, is for the users of the exchange system to be able to forward
any spams not tagged as spam, towards the linux filter and to the accout
"spamtrapper". The amavis-postfix-spamassassin server should then deliver LOCALLY for
"spamtrapper"  _and only that user_ so I can run some commands to teach the
bayesian filter on the local mailbox of that user.
You should NOT forward any mail from Exchange to some other recipient, since Exchange and Outlook will destroy a lot of the header information, what you should do is to set up a couple of Public folders on your Exchange server and call them for instance "SPAM" and "HAM" where your users should have write access to, so they can manually put SPAM and HAM in correct folder. When a user has moved the mail instead of forwarding, all header is as they where when received at the first time.
Which could be essential for SA

Then you should set up a IMAP user on your Exchange server which could access those Public folders only, there are a few already made scripts that will connect to your Exchange server (or whatever IMAP server you have), just make sure you know the absolute path to the Public folders when you're about to access them. Even further, make sure you understand the script that will help you download all SPAM's and HAM's

The one I'm using is this one below
http://gagravarr.org/code/imap-sa-learn.pl
And I have it set up in CRON to run twice a day, I also remove all mail from SPAM & HAM folder after successfully downloaded and learned SA, just to make the public folders clean. or you might want to do some changes in the script and just move learned messages into some other public folder.

/Micke
How do I configure this sollution to deliver locally for one spesific user?
(I really cannot find anything online about it)

Tips and pointers appeciated, we are currently drowning in spam. (75 spams
to my account during the weekend alone).

Regards

OH, Oslo Norway

Reply via email to