Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

update the wiki?

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


karlis.repsons at gmail

Feb 4, 2010, 2:35 AM

Post #1 of 3 (435 views)
Permalink
update the wiki?

People,
in trying to set up Razor2 sitewide, I found some things, which were not so good about the wikipage [1]. As per me, it would be this way (and it works):


I What was wrong

1. no need calling razor-client
2. no need to touch /etc/spamassassin, just /etc/spamassassin/.razor
3. cd .razor && chmod g+rw *

(first two cause some small confusion, but the last one took me digging through logfiles)

+ better razorhome = /etc/mail/spamassassin/.razor
not razorhome = /etc/mail/spamassassin/.razor/
!


II The instructions to set Razor up sitewide:

razor-admin -home=/etc/mail/spamassassin/.razor -register
razor-admin -home=/etc/mail/spamassassin/.razor -create
razor-admin -home=/etc/mail/spamassassin/.razor -discover

groupadd -g 812 spam-reporters
usermod -a -G spam-reporters myuser
cd /etc/mail/spamassassin/.razor
chmod g+rws .
chmod g+rw *
add to /etc/mail/spamassassin/local.cf: razor_config /etc/mail/spamassassin/.razor/razor-agent.conf
add to /etc/mail/spamassassin/.razor/razor-agent.conf: razorhome = /etc/mail/spamassassin/.razor
change into /etc/mail/spamassassin/.razor/razor-agent.conf: debuglevel = 1 # or you will have to treat that log seriously! Frankly, it presented me with lots of what I don't care about, but
made no priority about failed report logging in my case.

That was all... I might have made some mistake, as I just wrote from memory!


Its not clear to me in what cases should "-C /etc/mail/spamassassin" be added to calling spamassassin. Maybe /etc/mail/spamassassin is in some default path?
(as it works without "-C .." for me)


[1] http://wiki.apache.org/spamassassin/RazorSiteWide
Attachments: signature.asc (0.19 KB)


mkettler_sa at verizon

Feb 5, 2010, 4:51 AM

Post #2 of 3 (380 views)
Permalink
Re: update the wiki? [In reply to]

On 2/4/2010 5:35 AM, Kārlis Repsons wrote:
> People,
> in trying to set up Razor2 sitewide, I found some things, which were not so good about the wikipage [1]. As per me, it would be this way (and it works):
>
>
> I What was wrong
>
> 1. no need calling razor-client
> 2. no need to touch /etc/spamassassin, just /etc/spamassassin/.razor
> 3. cd .razor && chmod g+rw *
>
> (first two cause some small confusion, but the last one took me digging through logfiles)
>
> + better razorhome = /etc/mail/spamassassin/.razor
> not razorhome = /etc/mail/spamassassin/.razor/
> !
>
>
more to the point, razorhome is an obsolete option, I can find no
reference to it in the 3.3 code :-)

>
> Its not clear to me in what cases should "-C /etc/mail/spamassassin" be added to calling spamassassin. Maybe /etc/mail/spamassassin is in some default path?
> (as it works without "-C .." for me)
>

That clearly needs fixing.

-C should *NEVER* point to /etc/mail/spamassassin. *EVER*. No really.
This is a massive mistake popularized by a gross misunderstanding of
what this option does.

/etc/mail/spamassassin is the default for the --siteconfig path (ie:
where local.cf, init.pre and other files you edit should live). -C
specifies the default ruleset path (ie: files that are installed by SA
and/or sa-update, and you really should never be editing).

-C should only be used by true experts and/or developers who need to
maintain multiple base rulesets, because this option points to it. The
default here is /usr/share/spamassassin/, and then sa-update over-rides
to a directory under /var/lib/spamassassin.

It is important to note that using -C breaks sa-update, unless you
manually point -C to the directory it created, or copy the files
sa-update downloaded. At which point, why are you using it?

So, by specifying -C /etc/mail/spamassassin, you're forcing the default
ruleset path to be the same as the site config.

The folks making this mistake are also the ones who find they need to
copy /usr/share/spamassassin into /etc/mail/spamassassin. And then they
wonder why sa-update doesn't seem to be fixing their ruleset.






>
> [1] http://wiki.apache.org/spamassassin/RazorSiteWide
>


mkettler_sa at verizon

Feb 5, 2010, 5:27 AM

Post #3 of 3 (384 views)
Permalink
Re: update the wiki? [In reply to]

On 2/5/2010 7:51 AM, Matt Kettler wrote:
>
>> Its not clear to me in what cases should "-C /etc/mail/spamassassin" be added to calling spamassassin. Maybe /etc/mail/spamassassin is in some default path?
>> (as it works without "-C .." for me)
>>
>>
> That clearly needs fixing.
>
> -C should *NEVER* point to /etc/mail/spamassassin. *EVER*. No really.
> This is a massive mistake popularized by a gross misunderstanding of
> what this option does.
>

For what it's worth, I've removed this section of

http://wiki.apache.org/spamassassin/RazorSiteWide

and similar bad advice has been removed from:

http://wiki.apache.org/spamassassin/UsingPyzor

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.