You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert Fitzpatrick <li...@webtent.net> on 2007/07/18 16:49:17 UTC

not scoring correctly

We use SA 3.1.7 with Postfix and amavisd-new 2.4.4 and clamav. I
received several PDF's this morning even though we have updated
protection. They all came from one server, so I did a lookup in the mail
logs to find 'Hits: -', that's it. After some more searching on
different servers, I see this frequently, what does it mean as far as
score?

Logged in as the amavisd user 'vscan' and running sa test, it clearly
scores well above the 5.0 threshold. Any ideas why these type of
messages would have gotten through SA?

esmtp# bzcat /var/log/maillog.0.bz2 | grep "ysHkeL+S2PmL"
Jul 17 19:03:43 esmtp amavis[51729]: (51729-14) Passed CLEAN, [89.214.60.100] [108.83.93.165] <an...@goldyplace.com> -> <we...@webtent.com>, quarantine: clean-ysHkeL+S2PmL.gz, Message-ID: <14...@goldyplace.com>, mail_id: ysHkeL+S2PmL, Hits: -, queued_as: 0787037B4FA, 821 ms
esmtp# su vscan
$ spamassassin -t < /var/virusmails/clean-ysHkeL+S2PmL
<snip>
Content analysis details:   (11.7 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 2.4 MIME_BOUND_DIGITS_15   Spam tool pattern in MIME boundary
 4.5 BOTNET_NORDNS          Relay's IP address has no PTR record
                            [botnet_nordns,ip=89.214.60.100]
 2.0 GMD_PDF_FUZZY2_T3      BODY: Fuzzy MD5 Match
                            3D4E25DE4A05695681D694716D579474
 1.8 RCVD_IN_WHOIS_BOGONS   RBL: CompleteWhois: sender on bogons IP block
           [108.83.93.165 listed in combined-HIB.dnsiplists.completewhois.com]
 1.0 TVD_PDF_FINGER01       Mail matches standard pdf spam fingerprint

Thanks for any help!

-- 
Robert


Re: not scoring correctly

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 18.07.07 14:41, Robert Fitzpatrick wrote:
> I'm sure it did tremendously, thanks again. But WOW! Look at this one
> where the logs indicate it was scored at 4.441 as I received the
> message, but if I login as the vscan user, I get a score of 5.8...
> 
> Content analysis details:   (5.8 points, 5.0 required)
> 
>  pts rule name              description
> ---- ---------------------- --------------------------------------------------
>  0.6 GMD_PDF_ENCRYPTED      BODY: Attached PDF is encrypted
>  1.4 DCC_CHECK              Listed in DCC (http://rhyolite.com/anti-spam/dcc/)
>  1.3 MISSING_SUBJECT        Missing Subject: header
>  1.5 EMPTY_MESSAGE          Message appears to have no textual parts and no
>                             Subject: text
>  1.0 TVD_PDF_FINGER01       Mail matches standard pdf spam fingerprint

The difference is ~1.4, which is probably because the message matches DCC
check now. It happens very often that between more checks the message will
get to such network "lists" as IP/domain blacklists, URIBL's, razor, pyzor,
dcc and posibly some others.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
2B|!2B, that's a question!

Re: not scoring correctly

Posted by Robert Fitzpatrick <li...@webtent.net>.
On Wed, 2007-07-18 at 10:12 -0500, Craig Carriere wrote:
> I use 256K, but I have a small volume (about a thousand emails a day)
> server load.  We are also experimenting with the SaneSecurity
> definitions for clam which catch a lot of this rodent mail as well and
> should lower the SA load.
> 
> Glad it helped.
> 

I'm sure it did tremendously, thanks again. But WOW! Look at this one
where the logs indicate it was scored at 4.441 as I received the
message, but if I login as the vscan user, I get a score of 5.8...

Content analysis details:   (5.8 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 0.6 GMD_PDF_ENCRYPTED      BODY: Attached PDF is encrypted
 1.4 DCC_CHECK              Listed in DCC (http://rhyolite.com/anti-spam/dcc/)
 1.3 MISSING_SUBJECT        Missing Subject: header
 1.5 EMPTY_MESSAGE          Message appears to have no textual parts and no
                            Subject: text
 1.0 TVD_PDF_FINGER01       Mail matches standard pdf spam fingerprint

$ exit
esmtp# grep Hpqf4RZBgPd0 /var/log/maillog
Jul 18 14:12:54 esmtp amavis[26504]: (26504-09) Passed CLEAN, [63.139.123.10] [166.149.97.103] <nt...@usaor.net> -> <ro...@webtent.com>, quarantine: clean-Hpqf4RZBgPd0.gz, Message-ID: <46...@usaor.net>, mail_id: Hpqf4RZBgPd0, Hits: 4.441, queued_as: 9663137B50F, 2405 ms

What other things can contribute to this type of scenario?

-- 
Robert


Re: not scoring correctly

Posted by Robert Fitzpatrick <li...@webtent.net>.
On Wed, 2007-07-18 at 09:57 -0500, Administrator wrote:
> A rough guess and probably wrong as usual, but could the message size be
> larger than what you have set in amavisd-new?  If so then SA would be
> bypassed but not when you manually test the message.
> 

Ding! Thanks! It is set at 64*1024 falling short of all these 70K+ PDF
messages. What is recommended bypass these days considering the types of
spam out there? I raised it to 128*1024, but I don't want to choke these
heavily used gateways.

-- 
Robert


Re: not scoring correctly

Posted by Administrator <ad...@cobatco.com>.
A rough guess and probably wrong as usual, but could the message size be
larger than what you have set in amavisd-new?  If so then SA would be
bypassed but not when you manually test the message.



Robert Fitzpatrick wrote:
> We use SA 3.1.7 with Postfix and amavisd-new 2.4.4 and clamav. I
> received several PDF's this morning even though we have updated
> protection. They all came from one server, so I did a lookup in the mail
> logs to find 'Hits: -', that's it. After some more searching on
> different servers, I see this frequently, what does it mean as far as
> score?
>
> Logged in as the amavisd user 'vscan' and running sa test, it clearly
> scores well above the 5.0 threshold. Any ideas why these type of
> messages would have gotten through SA?
>
> esmtp# bzcat /var/log/maillog.0.bz2 | grep "ysHkeL+S2PmL"
> Jul 17 19:03:43 esmtp amavis[51729]: (51729-14) Passed CLEAN, [89.214.60.100] [108.83.93.165] <an...@goldyplace.com> -> <we...@webtent.com>, quarantine: clean-ysHkeL+S2PmL.gz, Message-ID: <14...@goldyplace.com>, mail_id: ysHkeL+S2PmL, Hits: -, queued_as: 0787037B4FA, 821 ms
> esmtp# su vscan
> $ spamassassin -t < /var/virusmails/clean-ysHkeL+S2PmL
> <snip>
> Content analysis details:   (11.7 points, 5.0 required)
>
>  pts rule name              description
> ---- ---------------------- --------------------------------------------------
>  2.4 MIME_BOUND_DIGITS_15   Spam tool pattern in MIME boundary
>  4.5 BOTNET_NORDNS          Relay's IP address has no PTR record
>                             [botnet_nordns,ip=89.214.60.100]
>  2.0 GMD_PDF_FUZZY2_T3      BODY: Fuzzy MD5 Match
>                             3D4E25DE4A05695681D694716D579474
>  1.8 RCVD_IN_WHOIS_BOGONS   RBL: CompleteWhois: sender on bogons IP block
>            [108.83.93.165 listed in combined-HIB.dnsiplists.completewhois.com]
>  1.0 TVD_PDF_FINGER01       Mail matches standard pdf spam fingerprint
>
> Thanks for any help!
>
>   

RE: not scoring correctly

Posted by Gary V <mr...@hotmail.com>.
>We use SA 3.1.7 with Postfix and amavisd-new 2.4.4 and clamav. I
>received several PDF's this morning even though we have updated
>protection. They all came from one server, so I did a lookup in the mail
>logs to find 'Hits: -', that's it. After some more searching on
>different servers, I see this frequently, what does it mean as far as
>score?
>

>Logged in as the amavisd user 'vscan' and running sa test, it clearly
>scores well above the 5.0 threshold. Any ideas why these type of
>messages would have gotten through SA?
>

>Jul 17 19:03:43 esmtp amavis[51729]: (51729-14) Passed CLEAN, 
>[89.214.60.100] [108.83.93.165] <an...@goldyplace.com> -> 
><we...@webtent.com>, quarantine: clean-ysHkeL+S2PmL.gz, Message-ID: 
><14...@goldyplace.com>, mail_id: ysHkeL+S2PmL, Hits: -, 
>queued_as: 0787037B4FA, 821 ms

Hits: -
indicates SA scanning was skipped. Possibly because the message was larger 
than:
$sa_mail_body_size_limit

Probably not a good idea to have this over 400k however:
$sa_mail_body_size_limit = 400*1024;

>  4.5 BOTNET_NORDNS          Relay's IP address has no PTR record
>                             [botnet_nordns,ip=89.214.60.100]


I would be careful using large Botnet scores. There have been a number of 
posts talking about false positives.

>Thanks for any help!
>
>Robert
>

Gary V

_________________________________________________________________
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507