You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Blair Cummings <bl...@mdb.net> on 2004/04/29 20:43:18 UTC
Disable system wide user_prefs
I'm using spamassassin 2.63 with exim 3.36.
It's working great but it was set up for site wide and running as a
deamon.
I've tried for a few days to get it to use ~/.spamassassin/user_prefs
but no dice.
I've tried -c, --user-config, etc.
Any help on this would be a great help!
Thanks
Blair
Re: Disable system wide user_prefs
Posted by Matt Kettler <mk...@evi-inc.com>.
At 04:14 PM 4/29/2004, Blair Cummings wrote:
>'m with you. Question ...
>
>If I were to use the -u, are you saying I couldn't use spamd?
No.. by saying that you should use spamc -u, I dictated you MUST use spamd.
Spamc and spamd are a pair. Spamd does nothing without spamc, spamc can't
run unless spamd is already loaded.
>and if so, where would you tell spamassassin to call spamc -u vers using
>the -d option to have it run as a deamon?
You're definitely very confused. The "spamassassin" command line tool will
never call spamc or spamd, that would be pointless for it to do, as it
would be slower.
You have a choice of how to call spamassassin. Pick one of the
following two:
1) call spamassassin.
2) call spamc, and have spamd running already.
The whole point behind spamd is to not use spamassassin (a perl app) and
instead use spamc (a compiled C program). By the time spamassassin loads,
you've already paid the cost of loading a new perl instance, so spamd can't
help you.
(note: there are two other options available as ways to call SpamAssassin,
but these only apply when writing code. Direct API calls like MailScanner
does, and direct connection to spamd like Miltrassassin does)
Re: Disable system wide user_prefs
Posted by Blair Cummings <bl...@mdb.net>.
OK:
I'm with you. Question ...
If I were to use the -u, are you saying I couldn't use spamd?
and if so, where would you tell spamassassin to call spamc -u vers using
the -d option to have it run as a deamon?
On Thu, 29 Apr 2004, Matt Kettler wrote:
> At 03:40 PM 4/29/2004, Blair Cummings wrote:
> >I'm just trying to get a "feature" to work. Everything I read says you can
> >do site wide or user defined. What does that?? I don't know ...
>
> There are two ways to get per-user configs:
> 1) setuid to the userid prior to calling SA
> 2) use the -u parameter to spamc.
>
> However, it's difficult to do things like this if you're integrated at the
> MTA layer like you are. You pretty much have to be down at the MDA or MUA
> layer to get per-user configs to work.
>
> If nothing else, think about an email that's cc'ed to 10 users. There's
> only one message at the MTA layer.. who's prefs are you going to use when
> you process that one message? The first user? The last? There's no sensible
> way to process this that will make users happy.
>
> However, at the MDA layer, you've got 10 separate deliveries, one per
> user.. now you can do per-user configs in a sensible way. However, you're
> paying the extra CPU overhead of scanning the message 10 times.
>
> This is in general one of the trade offs between calling SA at the MTA vs
> at the MDA.. Efficiency vs flexibility.
>
>
>
>
>
>
>
>
Re: Disable system wide user_prefs
Posted by Matt Kettler <mk...@evi-inc.com>.
At 03:40 PM 4/29/2004, Blair Cummings wrote:
>I'm just trying to get a "feature" to work. Everything I read says you can
>do site wide or user defined. What does that?? I don't know ...
There are two ways to get per-user configs:
1) setuid to the userid prior to calling SA
2) use the -u parameter to spamc.
However, it's difficult to do things like this if you're integrated at the
MTA layer like you are. You pretty much have to be down at the MDA or MUA
layer to get per-user configs to work.
If nothing else, think about an email that's cc'ed to 10 users. There's
only one message at the MTA layer.. who's prefs are you going to use when
you process that one message? The first user? The last? There's no sensible
way to process this that will make users happy.
However, at the MDA layer, you've got 10 separate deliveries, one per
user.. now you can do per-user configs in a sensible way. However, you're
paying the extra CPU overhead of scanning the message 10 times.
This is in general one of the trade offs between calling SA at the MTA vs
at the MDA.. Efficiency vs flexibility.
Re: Disable system wide user_prefs
Posted by Blair Cummings <bl...@mdb.net>.
Beats me, that's why I'm posting :)
I'm just trying to get a "feature" to work. Everything I read says you can
do site wide or user defined. What does that?? I don't know ...
spamassassin docs say to use switches in the /usr/defaults/spamassassin
file and thats I'll I could fine.
On Thu, 29 Apr 2004, Matt Kettler wrote:
> At 02:43 PM 4/29/2004, Blair Cummings wrote:
> >It's working great but it was set up for site wide and running as a
> >deamon.
> >
> >I've tried for a few days to get it to use ~/.spamassassin/user_prefs
> >but no dice.
>
> Which ~/ did you expect it to use? Remember.. ~/ is a function of what
> userID is being used for the execution environment. It's not something SA
> parses out of mail headers..
>
> If Exim always calls you as root, ~/ is always /root/.
>
>
Re: Disable system wide user_prefs
Posted by Matt Kettler <mk...@evi-inc.com>.
At 02:43 PM 4/29/2004, Blair Cummings wrote:
>It's working great but it was set up for site wide and running as a
>deamon.
>
>I've tried for a few days to get it to use ~/.spamassassin/user_prefs
>but no dice.
Which ~/ did you expect it to use? Remember.. ~/ is a function of what
userID is being used for the execution environment. It's not something SA
parses out of mail headers..
If Exim always calls you as root, ~/ is always /root/.