[exim] Handy ACL for getting rid of stock spam

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Marc Perkel
Datum:  
To: exim-users
Betreff: [exim] Handy ACL for getting rid of stock spam
This runs off of a text file of regular expressions. Good way to get rid
of a ton of stock spams. Mime ACL

deny    
    message = REGEX - Message contains blacklisted string ($regex_match_string) H=$sender_fullhost - S=$h_Subject: - F=$h_From: - T=$h_To:
    condition = ${if < {$message_body_size}{50000}{yes}{no}}
    mime_regex = ${sg{${sg{${sg{${readfile{/etc/exim/control/spamstorm.txt}{:}}}{\\:+}{:}}}{#.*?\\:}{}}}{\\:\$}{}}


Content of file

\W[A-Z]{4}\.PK\W
\WAPWL\W
\WC N H C\W
\WCNHC\W
\WGAMN\W
\WGDKI\W
\WGITH\W
\WHEGP\W
\WLVCC\W
\WNSLT\W
\WWEXE\W