[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto Per-User spamassassin with postfix-LDAP?

It all depends on how much of a load you want to put on your mail server. ;-)

Spam-Assassin can be run per user as long as some filtering language calls SPAM assassin first.

Both procmail and mailfilter can do this.

A mailfilter example would look like this:

import SENDER
import HOME
#filename: $HOME/.mailfilter
#if message size is less than 26K scan it 
if ($SIZE < 26144)
        exception {
                #SPAM assassin ready
                xfilter "/usr/bin/spamassassin"

		#if you want to run spamd on your server
		#this program lets you call the daemon safely
                #xfilter "/usr/bin/spamc"

#if the message is tagged as spam put it into the SPAM MAILBOX
if (/^X-Spam-Flag: *YES/)
        exception {
                #to spamfolder
                to "$DEFAULT/.Spam/"

Postfix needs to have a local delivery agent for this to work.

Either maildrop,local,and lmtp should work.

For example, I am using the following postfix delivery agent:
local_transport = lmtp

> On 05/05/04 10:45 +0200, Tom?s N??ez Lirola wrote:
> Hi
> I've recently installed a mail server with Postfix and LDAP. I've installed 
> amavis to check virus, and now I want to put some spam filter.
> Some time ago I put spamassassin, but we know spamassassin is not perfect, and 
> some of the users complained because part of their mails was lost, and in 
> some cases was a big part of the mails, so I removed spamassassin (following 
> boss orders).
> Now I'd like to put some spam filter, but I'd like to permit users to choose 
> if they want it or not. Is there any possibility that amavis or spamassassin 
> search in LDAP if this user wants virus/spam filter or not? Is there any way 
> to make per-user spamassassin/amavis with postfix-LDAP?
> -- 
> To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Ted Knab
Chester, Maryland  21619 USA
Conquest is easy. Control is not.
                -- Kirk, "Mirror, Mirror", stardate unknown

Reply to: