Page 1 of 1
PHP_ORIG_SCRIPT not too high?
Posted: 31 Mar 2016 16:47
by robertboyl
Hello, everyone
Im wonder, this test, which doesnt seem to be in the original Spamassassin, IMHO, seems a bit too high of a score, as it seems to just identify the email came from a PHP script...
Any thoughts?
X-efa-SpamCheck: not spam, SpamAssassin (not cached, score=3.452,
required 4, autolearn=disabled, PHP_ORIG_SCRIPT 2.25,
SUBJECT_NEEDS_ENCODING 0.10, SUBJ_ILLEGAL_CHARS 1.10)
X-efa-SpamScore: 3
The email itself simply has:
X-PHP-Originating-Script: 786:orcamento.php
Thanks!
Robert
Re: PHP_ORIG_SCRIPT not too high?
Posted: 01 Apr 2016 13:18
by akl
Hi,
you can edit the score in /var/lib/spamassassin/3.004001/updates_spamassassin_org/72_scores.cf
I am running EFA 3.0.0.9 and my scores are
score PHP_ORIG_SCRIPT 0.500 2.245 0.500 2.245
I assume, that you have a different ruleset base because it is 2.25 in your posting.
This might be because of updates....
The rule itself is specified in 72_active.cf and as far as I understand it is not simply the PHP scripüt, that matters
##{ PHP_ORIG_SCRIPT
meta PHP_ORIG_SCRIPT __PHP_ORIG_SCRIPT_SONLY && !ALL_TRUSTED && !__SUBSCRIPTION_INFO
describe PHP_ORIG_SCRIPT Sent by bot & other signs
#score PHP_ORIG_SCRIPT 2.500 # limit
tflags PHP_ORIG_SCRIPT publish
##} PHP_ORIG_SCRIPT
Maybe you should investigate the other rules for your sender. I understand, that PHP_ORIG_SCRIPT is only true if all three subrules match.
But please keep in mind, that i am kind of new to this stuff as well. I am still learning myself.
Maybe some of the experts can confirm my suggestion or not, please.
Regards
akl
Re: PHP_ORIG_SCRIPT not too high?
Posted: 02 Apr 2016 14:23
by shawniverson
Don't edit /var/lib/spamassassin/ it'll just get overwritten in the next update
Instead, override it in /etc/mail/spamassassin/local.cf

Re: PHP_ORIG_SCRIPT not too high?
Posted: 02 Apr 2016 15:01
by akl
yes, that makes sense
can I override anything that's elsewhere in the SA chain in local.cf?
e.g.
adding just score PHP_ORIG_SCRIPT 0.500 1.000 0.500 1.000 in local.cf will override the statement no matter in which other file it is used?
I'd like to override the Image Cerberus myself, because it is really strict and I did not yet really understand its criterias, wether a rule is true for a Picture or not...
regards
akl
Re: PHP_ORIG_SCRIPT not too high?
Posted: 05 Apr 2016 08:34
by pdwalker
I believe so, yes.
At least, that is where I am doing it.
Re: PHP_ORIG_SCRIPT not too high?
Posted: 05 Apr 2016 10:21
by akl
ok, thanks!
Re: PHP_ORIG_SCRIPT not too high?
Posted: 08 Apr 2016 14:14
by robertboyl
Thanks!!