Skip to content

Instantly share code, notes, and snippets.

@zhiephie
Created Apr 8, 2018
Embed
What would you like to do?
SpamAssassin rules tld domain
# add points if the From address is not a valid host in a listed TLD
header LOCAL_FROM_TLD From !~ /@[a-z0-9\-\.]+\.(com|net|mil|edu|cn|id|co\.id|go\.id|sch\.id|or\.id|ponpes\.id)/i
describe LOCAL_FROM_TLD From address is not a valid host in a listed TLD
score LOCAL_FROM_TLD 15
@helptiger
Copy link

helptiger commented Feb 7, 2021

How to catch .in and not .info?

@helptiger
Copy link

helptiger commented Feb 8, 2021

How to catch .in and not .info?

header LOCAL_FROM_TLD From !~ /@[a-z0-9\-\.]+\.(in(?!fo)|ru|cn| …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment