> Giovanni Bechis <giova...@paclan.it> kirjoitti 20.5.2019 kello 17.00:
> 
> Hi,
> in a rule I would like to check if "From:" != "Reply-To:", is this possible 
> without writing any code or should I add a new function in HeaderEval ?
> Thanks & Cheers
>  Giovanni
> 

Hello!

I have this in my /etc/spamassassin/local-rules.cf

header __FROM_EQ_TO     eval:check_for_from_equals_to()
meta L_FROM_EQUALS_TO   !(ALL_TRUSTED || DKIM_VERIFIED) && __FROM_EQ_TO
describe L_FROM_EQUALS_TO       From: and To: have the same username
score L_FROM_EQUALS_TO  1.0

header __FROM_V_REPLY   eval:check_for_from_v_replyto_dom()
header __PREC_BULK      Precedence =~ /bulk|list/
meta L_FROM_NOT_REPLY !(__PREC_BULK||ALL_TRUSTED||DKIM_VERIFIED) && 
__FROM_V_REPLY
describe L_FROM_NOT_REPLY       From: and Reply-To: have different domains
score L_FROM_NOT_REPLY  1.0

Br. Jarif

Reply via email to