Thanks for your answer, yes it's really simple but I use spamassassin 3.3 :(

Le 14/03/2014 12:52, Axb a écrit :
if you're using SA 3.4 it's really simple

blacklist_uri_host webs.com

On 03/14/2014 12:44 PM, Stanislas LEVEAU wrote:

I wrote 2 spamassassin rules but that does not work obviously. Where is
the mistake?

Thanks in advance


uri_detail     __SPAMS_URI_6  raw =~ /%2Ewebs/ domain =~ /^webs\.com$/
type =~ /^a$/
describe   __SPAMS_URI_6   url vers formulaire
score   __SPAMS_URI_6  15.0

to detect an uri just use

uri RULENAME    /\.webs\.com/

uri     __SPAMS_URI_7 /^webs\.com\//
describe __SPAMS_URI_7 url vers formulaire
score   __SPAMS_URI_7 15.0

/^webs\.com/ means the uri starts with "webs" so http://webs.com would be ignored.

h2h

Axb


--
Stanislas LEVEAU
*Stanislas LEVEAU**

*Rectorat de Caen
168, rue Caponière
B.P. 6184
14061 CAEN Cedex
        Direction des Systèmes d'Information de l'Académie de Caen
Département des infrastructures

stanislas.lev...@ac-caen.fr
 Tel : 02.31.30.17.86



Reply via email to