You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by se...@debianfan.de on 2017/10/06 08:28:46 UTC
whitelisting mails depend of receiving header lines
Hi @all,
i want to add +100 points for some mails, which have a special "received
header".
How can i do this?
For example - if any message contains: "from lists.uni-leipzig.de",
spamassassin should have a rule for adding +100 points.
Received: from lists.uni-leipzig.de (lists.uni-leipzig.de [139.18.1.37])
Tnx
Sebastian
Re: whitelisting mails depend of receiving header lines
Posted by RW <rw...@googlemail.com>.
On Fri, 06 Oct 2017 10:28:46 +0200
sebastian@debianfan.de wrote:
> Hi @all,
>
> i want to add +100 points for some mails, which have a special
> "received header".
You mean -100 as +100 is a blacklisting score.
> How can i do this?
>
> For example - if any message contains: "from lists.uni-leipzig.de",
> spamassassin should have a rule for adding +100 points.
>
>
> Received: from lists.uni-leipzig.de (lists.uni-leipzig.de
> [139.18.1.37])
If you can, use:
whitelist_from_rcvd * lists.uni-leipzig.de
as this is hard to spoof, but it requires that your trusted network
receives the email directly from that server.
Otherwise you can use:
header RCVD_LISTS_UNI_LEIPZIG Received =~ /from lists.uni-leipzig.de /i
score RCVD_LISTS_UNI_LEIPZIG -100