Mailscanner Conf
Seamus Allan
seamus at rheelweb.co.nz
Mon Apr 16 02:56:12 IST 2007
Heres the output from the sudo'd spamassassin test. I have tried almost
everything in my power to make the /root/.spamassassin folder writable to no
avail, so will need to shift the config elsewhere, and somehow point
spamassassin to it??
[8189] warn: config: cannot write to /root/.spamassassin/user_prefs:
Permission denied
[8189] warn: config: failed to create default user preference file
/root/.spamassassin/user_prefs
<snip>Spam message in question
Content analysis details: (5.7 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
2.5 MISSING_HB_SEP Missing blank line between message header and
body
0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay
lines
0.2 MISSING_HEADERS Missing To: header
0.1 TO_CC_NONE No To: or Cc: header
1.3 MISSING_SUBJECT Missing Subject: header
1.5 EMPTY_MESSAGE Message appears to have no textual parts and no
Subject: text
I tried testing the Bayesian theory too, and I think that you're right: all
of the bayes learning scripts that I have written run as root (through cron)
so it will be learning to the wrong bayes database.
So the question is where do I most the files (namely bayes files) from
/root/.spamassassin to?
Thanks
Seamus
Seamus Allan
Network Engineer
Rheel Electronics Ltd
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
Martin.Hepworth
Sent: Friday, 13 April 2007 8:01 p.m.
To: MailScanner discussion
Subject: RE: Mailscanner Conf
Seanus
What happens if you run the spamassassin -t < messsagefile as the
postfix user?????
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-
> bounces at lists.mailscanner.info] On Behalf Of Seamus Allan
> Sent: 13 April 2007 05:36
> To: MailScanner discussion
> Subject: Mailscanner Conf
>
> Hi guys, been lurking for the last while, and now I have a question.
> We are running MailScanner with Postfix and all the jazz quite
> successfully
> for over a year now. After a while I have noticed that some very
spammy
> messages are getting through with quite low spam scores. Intrigued, I
> placed
> some of these messages where I could get to them, and ran (as root)
> spamassassin -t < messagefile, and I get a good score (well over the
> threshold). So then I sudo'd the spamassassin command as the postfix
user,
> and I got the low score - bingo.
> However, I am not sure which config is user dependent, and where to
shift
> it
> to such that it gets used by spamassassin when run by the postfix
user.
>
> It's probably a pretty simple solution, but I just can't find it.
>
> Cheers
>
> Seamus.
>
> Seamus Allan
> Network Engineer
> Rheel Electronics Ltd
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the
addressee only and may be confidential. If they come to you in error
you must take no action based on them, nor must you copy or show them
to anyone. Please advise the sender by replying to this e-mail
immediately and then delete the original from your computer.
Opinion : Any opinions expressed in this e-mail are entirely those of
the author and unless specifically stated to the contrary, are not
necessarily those of the author's employer.
Security Warning : Internet e-mail is not necessarily a secure
communications medium and can be subject to data corruption. We advise
that you consider this fact when e-mailing us.
Viruses : We have taken steps to ensure that this e-mail and any
attachments are free from known viruses but in keeping with good
computing practice, you should ensure that they are virus free.
Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
United Kingdom
**********************************************************************
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list