Skip to content

Instantly share code, notes, and snippets.

@zhiephie
Created April 8, 2018 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhiephie/def673bd4a71562ffdbb87d9b5a557a4 to your computer and use it in GitHub Desktop.
Save zhiephie/def673bd4a71562ffdbb87d9b5a557a4 to your computer and use it in GitHub Desktop.
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

How to catch .in and not .info?

@helptiger
Copy link

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