SV: Local State Dir - /var/lib/spamassassin - SARE rules no hits
Daniel Flensburg
Daniel.Flensburg at iris.se
Wed Nov 26 12:48:50 GMT 2008
Ok, running spamassassin -D -t /var/spool/MailScanner/quarantine/20081126/spam/5CADB8739E.14348, gives me:
[3924] dbg: config: using "/etc/spamassassin" for site rules pre files
[3924] dbg: config: read file /etc/spamassassin/init.pre
[3924] dbg: config: read file /etc/spamassassin/v310.pre
[3924] dbg: config: read file /etc/spamassassin/v312.pre
[3924] dbg: config: using "/var/lib/spamassassin/3.001004" for sys rules pre files
[3924] dbg: config: read file /var/lib/spamassassin/3.001004/saupdates_openprotect_com.pre
[3924] dbg: config: read file /var/lib/spamassassin/3.001004/updates_spamassassin_org.pre
[3924] dbg: config: using "/var/lib/spamassassin/3.001004" for default rules dir
[3924] dbg: config: read file /var/lib/spamassassin/3.001004/70_sare_adult_cf_sare_sa-update_dostech_net.cf
[...]
[3924] dbg: config: read file /var/lib/spamassassin/3.001004/saupdates_openprotect_com.cf
[3924] dbg: config: read file /var/lib/spamassassin/3.001004/sought_rules_yerp_org.cf
[3924] dbg: config: read file /var/lib/spamassassin/3.001004/updates_spamassassin_org.cf
[3924] dbg: config: using "/etc/spamassassin" for site rules dir
[3924] dbg: config: read file /etc/spamassassin/FuzzyOcr.cf
[3924] dbg: config: read file /etc/spamassassin/mailscanner.cf
[3924] dbg: config: read file /etc/spamassassin/pdfinfo.cf
[3924] dbg: config: using "/var/spool/postfix/.spamassassin" for user state dir
[3924] dbg: config: mkdir /var/spool/postfix/.spamassassin failed: mkdir /var/spool/postfix/.spamassassin: Permission denied at /usr/share/perl5/Mail/SpamAssassin.pm line 1491
[3924] dbg: config: Permission denied
[3924] dbg: config: using "/var/spool/postfix/.spamassassin" for user state dir
[3924] dbg: config: mkdir /var/spool/postfix/.spamassassin failed: mkdir /var/spool/postfix/.spamassassin: Permission denied at /usr/share/perl5/Mail/SpamAssassin.pm line 1491
[3924] dbg: config: Permission denied
[3924] warn: config: cannot write to /var/spool/postfix/.spamassassin/user_prefs: No such file or directory
[3924] warn: config: failed to create default user preference file /var/spool/postfix/.spamassassin/user_prefs
[3924] dbg: config: using "/var/spool/postfix/.spamassassin/user_prefs" for user prefs file
BUT the settings in MailScanner.conf is:
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
I just created the .spamassassin in the /var/spool/postfix folder and now spamassassin does not complain.
however If I check a message in MailWatch I get:
cached not
resultat=-1.507
2 krav
-2.60 BAYES_00 Bayesian spam probability is 0 to 1%
1.09 EXTRA_MPART_TYPE Header has extraneous Content-type:...type= entry
0.00 HTML_MESSAGE HTML included in message
checking same message with spamassassin -D -t /var/spool/MailScanner/quarantine/20081126/nonspam/F2F6E873B0.90E15
gives me:
Content analysis details: (3.6 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.1 EXTRA_MPART_TYPE Header has extraneous Content-type:...type= entry
1.8 SARE_SPEC_REPLICA_OBFU BODY: Rolex with obfuscated replica
0.3 SARE_WEOFFER BODY: Offers Something
0.1 TW_HM BODY: Odd Letter Triples with HM
0.0 HTML_MESSAGE BODY: HTML included in message
-1.1 BAYES_05 BODY: Bayesian spam probability is 1 to 5%
[score: 0.0115]
1.4 SARE_GIF_ATTACH FULL: Email has a inline gif
What can be the problem? I'm thinking my Apache user is perhaps missing permissions somewhere and cannot present the right result? Could this be the case? Look also at the differens scores 1.09/1.1 and Bayes hit 00/05
/Daniel
-----Ursprungligt meddelande-----
Från: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] För Glenn Steen
Skickat: den 26 november 2008 11:39
Till: MailScanner discussion
Ämne: Re: Local State Dir - /var/lib/spamassassin - SARE rules no hits
2008/11/26 Glenn Steen <glenn.steen at gmail.com>:
> 2008/11/26 Daniel Flensburg <Daniel.Flensburg at iris.se>:
> (snip)
>> Before I do something stupid. What would be the right settings? Could I just run chown -R postfix:www-data against the quarantine dir? Do I have to change the setting: Quarantine User = postfix? Something else? chmod the quarantine dir?
>>
> Do the chmod as you suggest (so that it includes the quarantine
chown... of course:-).
> directory), and change Quarantine User to postfix, then restart
> MailScanner. That should be all.
>
>> Thank you all for your help!
>>
>> /Daniel
>>
> (snip)
>
> Cheers
> --
> -- Glenn
> email: glenn < dot > steen < at > gmail < dot > com
> work: glenn < dot > steen < at > ap1 < dot > se
>
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
--
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