Virtual mailuser with their own bayes db?

Christian Pedaschus cpedaschus at
Sat Jun 10 15:58:43 IST 2006

Thanks for the answer, Jules.
I'll have a look at said solutions without bayes, because i don't like
the idea of having 1 big bayes db for users across different domains
(perhaps some users like a given sort of spam and learn it as ham while
others learn it as spam, sounds like a bad idea)

Just one more question:
Could you please explain what this means, i'm curious :)

# N.B. SpamAssassin will use home dir defined in ENV{HOME}
#      'if $ENV{HOME} =~ /\//'
# So, set ENV{HOME} to desired directory, or undef it to force it to get
# using getpwnam of $> (EUID)

In bin/Mailscanner env(home) get unset, that's why this comment
irritates me.

Greets, Chris

Julian Field wrote:

>Hash: SHA1
>MailScanner does not use spamd/spamc at all, it talks directly to 
>SpamAssassin's Perl library for speed and efficiency reasons.
>However, this does mean that you are stuck to 1 bayes db for the whole 
>system, sorry. People such as Matt Kettler (Matt--correct me if I'm 
>wrong) have constructed very reliable spam detection without using bayes 
>at all, so this isn't actually a big problem. Most people run with 
>bayes, with one bayes db shared between all their customers/users and 
>have no problems with it at all.
>So that bad news is that you can't do it. The good news is that it 
>doesn't actually matter anyway.
>Christian Pedaschus wrote:
>>Hi everybody,
>>i'm using mailscanner-4.54.6, latest qmail-ldap and courier-imap-3.0.8
>>and try to get spamassassin to use a separate bayes db for every virtual
>>mailuser instead of a global one, but can't get it to work nor did i
>>find anything in the wiki/documentation about it (perhaps i'm blind, pls
>>excuse if so, was a long day).
>>i found a howto to patch spamd to get the vuser home-dir from courier,
>>but it's not of much help because i'm no perl-developer and can't
>>convert the needed steps to spamassassin. i looked around in
>>Mailscanner/lib/Mailscanner/ and line 89-92 look promising, but i
>>don't fully understand them. the sa-howto patches the getpwnam call to
>>return the data from courier, i guess that's what i need to do here, i
>>just don't know how or where exactly.
>>can someone give me a hint on how to get this running?
>>Greets, Chris
>>ps. the mentioned spamd-patch howto:
>- -- 
>Julian Field
>Buy the MailScanner book at
>Professional Support Services at
>MailScanner thanks transtec Computers for their support
>PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>Version: PGP Desktop 9.0.6 (Build 6060)

More information about the MailScanner mailing list