friends = header /^Received$/ /^from [^ ]*(ork.net|home.com)/e
attachments = header ,^Content-Type$, ,multipart/mixed, and \
body ,^Content-Type: application/,
executables = $attachments and body ,name=".*.(pif|exe|scr)"$,e
reject "executable attachment from non-friends"
$executables and not $friends
note: local socket changed to /var/spool/milter-regex/spool, adjust
sendmail.cf/.mc accordingly when updating:
-`S=unix:/var/spool/milter-regex, T=S:30s;R:2m'
+`S=unix:/var/spool/milter-regex/sock, T=S:30s;R:2m'