Skip to content

Instantly share code, notes, and snippets.

@gnanet
Created June 11, 2015 21:46
Show Gist options
  • Save gnanet/d862c9d7ba819bd18a93 to your computer and use it in GitHub Desktop.
Save gnanet/d862c9d7ba819bd18a93 to your computer and use it in GitHub Desktop.
Spamassassin rule to filter "From" header for addresses where email user part consists of (realname)(7 random letters)(realname)@
header FROM_REAL_SEVEN From =~ /"(\S*).*" <\1([a-z0-9]{7})[a-z]*\@/i
describe FROM_REAL_SEVEN From contains Realname 7 random letters in the middle
score FROM_REAL_SEVEN 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment