[Rspamd-Users] Simple rule trouble.
Michelle Sullivan
michelle at isux.com
Tue Sep 9 12:45:33 UTC 2025
Hi All,
I seem to think I’m being really stupid here but I can’t seem to work out how to do the simplest of tasks in rspamd…. For example I need a rule that looks like the following (pseudo code):
If sender-IP is NOT in range 10.10.0.0/16 and header-from matches regexp then score = 10.0
Is there a simple way to do this?
Specifically for this example:
If the incoming IP is NOT in 161.146.0.0/16 and the header From: matches /(ato|mygov|myid|centerlink).*\<.+\@.+\>$/ then score 10.0
Thanks,
Michelle
More information about the Users
mailing list