Please CC me on jmc AT XISL DOT com as I'm not subscribed
Having the limit on spamassassin scan sizes means that I get spam with
huge pictures, however nearly all of it is sent to domain names which we
host for certain websites but we don't ever take mail for.
So I'd like to reject mail over a certain size if it doesn't have a
"To:" line in the header or if it does but it goes to a domain which we
host but don't usually take mail for.
I'm struggling to get the syntax for this right.
Currently I've got (splitting over several lines without \s)
deny condition = ${if and {
{>={$message_size}{100000}}}
{or {
{!def:h_To: {1}}
{${lookup{$h_To:}
nwildlsearch{CONFDIR/Rare-domains}{1}}
}
}
}
}
message = Your message to $h_To: (not used for email) is too large and is
rejected
But Exim objects: invalid "condition" value " {1}}}}"
Please someone advise me how to write this.
I also want to do something similar with the spamassassin score test so
that it rejects the message as spam on 1.0 points rather than 10.0
points if there's no To: line or it's in the file of "rare domains" and
that is more complicated as it has to be
reject if score > 10.0 OR (score > 1.0 AND (no To: line OR in
Rare-domains file))
Thanks.
John Collins Xi Software Ltd www.xisl.com
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/