Mailscanner - Spamassassin Issue
iversons at rushville.k12.in.us
Thu Jun 7 21:23:21 UTC 2018
What happens if you run this, which is equivalent to your successful
command as root, but as postfix?
sudo -u postfix spamassassin -D -t Testy.eml
Which, if it doesn't work, means that your postfix user cannot access
things that spamassassin needs to perform a successful scan.
On Thu, Jun 7, 2018 at 3:24 PM, Toby <toby at rosecott.net> wrote:
> So after playing with the suggestion below, and changing the command a
> little bit i now definatley have two different behaviours.
> Running the commands :-
> 1. spamassassin -D -t Testy.eml
> consistantly gives me a full scan and result set and ends (before
> reporting the score) with :-
> Jun 7 20:14:41.072  dbg: check: is spam? score=8.997 required=5
> Jun 7 20:14:41.072  dbg: check: tests=BAYES_99,BAYES_999,
> Jun 7 20:14:41.073  dbg: check: subtests=__ANY_TEXT_ATTACH,__
> Jun 7 20:14:41.075  dbg: timing: total 46298 ms - init: 5474
> (11.8%), parse: 6 (0.0%), extract_message_metadata: 137 (0.3%),
> get_uri_detail_list: 27 (0.1%), tests_pri_-1000: 130 (0.3%), compile_gen:
> 713 (1.5%), compile_eval: 138 (0.3%), tests_pri_-950: 22 (0.0%),
> tests_pri_-900: 24 (0.1%), tests_pri_-400: 36459 (78.7%), check_bayes:
> 36436 (78.7%), b_tokenize: 29 (0.1%), b_tok_get_all: 11 (0.0%),
> b_comp_prob: 9 (0.0%), b_tok_touch_all: 0.51 (0.0%), b_finish: 36381
> (78.6%), expire_bayes: 36225 (78.2%), tests_pri_0: 3647 (7.9%), check_spf:
> 161 (0.3%), dkim_load_modules: 106 (0.2%), check_dkim_signature: 2.5
> (0.0%), check_dkim_adsp: 126 (0.3%), poll_dns_idle: 0.80 (0.0%),
> check_razor2: 1416 (3.1%), check_pyzor: 284 (0.6%), tests_pri_500: 331
> Running the commands
> 1. sudo su postfix -p -c "spamassassin -D -t -C
> /etc/MailScanner/spamassassin.conf < Testy.eml" - in the dbg statements
> for this command, there are some warnings about permission
> 2. sudo -u postfix spamassassin -D -t -C /etc/MailScanner/spamassassin.conf
> 3. spamassassin -D -t -C /etc/MailScanner/spamassassin.conf Testy.eml
> Seems to start spamassassin, but it finishes way way sooner than the
> successful command, it stops very early on in the dbg, and gives a message
> saying "(no Report template found)
> the above 3 commands all end up with
> Jun 7 20:23:20.745  dbg: check: is spam? score=0 required=5
> Jun 7 20:23:20.746  dbg: check: tests=
> Jun 7 20:23:20.746  dbg: check: subtests=
> Jun 7 20:23:20.747  dbg: timing: total 796 ms - init: 696 (87.5%),
> parse: 6 (0.7%), extract_message_metadata: 62 (7.8%), get_uri_detail_list:
> 24 (3.0%), tests_pri_0: 21 (2.6%), compile_gen: 4.3 (0.5%)
> There are plenty of other difference betweent the two reports.
> Still very little idea of what i am doing with this, so help is still very
> much appreciated!
> ------ Original Message ------
> From: "Toby Widdows" <toby at rosecott.net>
> To: "MailScanner Discussion" <mailscanner at lists.mailscanner.info>
> Sent: 06/06/2018 23:15:04
> Subject: Re: Mailscanner - Spamassassin Issue
> Ahh never thought of that, will give it a try
> Toby Widdows
> On Wed, Jun 6, 2018 at 11:14 PM +0100, "Shawn Iverson" <
> iversons at rushville.k12.in.us> wrote:
>> Are you executing spamassassin in the same way that MailScanner calls
>> In other words...assuming MailScanner is running as postfix...something
>> like this....
>> sudo su postfix -p -c "spamassassin -t -d -C /etc/MailScanner/
>> spamassassin.conf < somespamemail"
>> This may shed some insight.
>> On Wed, Jun 6, 2018 at 2:47 PM, Toby <toby at rosecott.net> wrote:
>>> I have just set up MailScanner in a PI3 running Jessie, I have postfix
>>> as a mail server.
>>> I'm not sure MailScanner is calling or allowing Spamassassin to run
>>> I can see from the X headers that stuff is happening, but it is not
>>> catching emails that are blatantly spam. i get a lot of scores below 3.
>>> It passes the eicar, and gtube tests.
>>> However i picked an email that passed through mailscanner with a low
>>> score of 3, saved it, and then ran spamassassin -D <filename> and this
>>> process marked it as a 9!
>>> I think, but am not sure, that MailScanner is not triggering
>>> Spamassassin or Spamassassin when triggered by MailScanner is either not
>>> completing or not doing anything.
>>> I am completely new to this, and have no idea where to look, or what to
>>> Any help greatly appreciated
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>> Shawn Iverson, CETL
>> Director of Technology
>> Rush County Schools
>> 765-932-3901 x1171
>> iversons at rushville.k12.in.us
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
Shawn Iverson, CETL
Director of Technology
Rush County Schools
iversons at rushville.k12.in.us
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the MailScanner