X-Spam-Flag: YES |
This is how you start procmail. Put a hidden file called procmail in the user's root home directory. The presence of this file causes procmail to start and to follow any instructions contained in the procmail configuration file. procmail will run spamassassin if .procmailrc contains these two lines.
:0fw | spamassassin |
The next step is to set up a filter in evolution. The filter will move all messages with an X-Spam-Flag set to a folder called Spam instead of the normal inbox.
Menu bar Tools Filters Filters dialog Incoming Filter rules (New) Edit Rule dialog Rule name: Move to Spam folder If box Specific header X-Spam-Flag contains YES Then box Move to folder Click here to select a folder New Create new folder dialog Folder name: Spam Folder type: Mail Specify where to create the folder: Inbox OK OK |
Menu bar Tools Filters Filters dialog Incoming Filter rules Add Edit Rule dialog Rule name: Move to local folder If box Recipients contains @local-host Then box Move to folder Click here to select a folder New Create new folder dialog Folder name: Local Folder type: Mail Specify where to create the folder: Inbox OK OK |