Yavuz Maslak a écrit : > Let me explain my problem and goal; > > For instance, a spammer installs a smtp server and he has a tool to send > his mails. He writes [EMAIL PROTECTED] in from adress and He sends his > mails using his smtp server. Namely, he doesn't use gmail's servers. I > want to give high score for these sort of mails. > > Now I have written a rule according to Jeff and Matus, > Thanks to both. > > header __L_ML1 Precedence =~ m{\b(list|bulk)\b}i > header __L_ML2 exists:List-Id > header __L_ML3 exists:List-Post > header __L_ML4 exists:Mailing-List > header __L_HAS_SNDR exists:Sender > meta __L_VIA_ML (__L_ML1 || __L_ML2 || __L_ML3 || __L_ML4 || > __L_HAS_SNDR) > header __L_FROM_GMAIL From:addr =~ [EMAIL PROTECTED] > meta L_UNVERIFIED_GMAIL (!DKIM_VERIFIED && __L_FROM_GMAIL && > !__L_VIA_ML) > priority L_UNVERIFIED_GMAIL 500 > score L_UNVERIFIED_GMAIL 2.5 > meta UNVERIFIED_GMAILMISS (!DKIM_VERIFIED && DKIM_SIGNED && > __L_FROM_GMAIL && !__L_VIA_ML) > priority UNVERIFIED_GMAILMISS 600 > score UNVERIFIED_GMAILMISS 0.0 > > any advances ? >
copy the file http://www.netoyen.net/sa/dkim.cf to your spamassassin rules directory (the directory where you have local.cf). This file contains the rules suggested on http://www.ijs.si/software/amavisd/amavisd-new-docs.html#dkim so that you don't need to copy-paste ;-p run: spamassassin --lint if you get an error, then either you or I did something wrong ;-p you may increase the score of L_NOTVALID_GMAIL (and the like) if you want, but 2.8 should be enough.