Here's what I'm trying and hoping I won't get false positives.

drop     message = REJECTED - Graphic Attachment and bad HELO 
\"$mime_filename\" HELO=$sender_helo_name
    condition = ${if match 
{${lc:$mime_filename}}{\N(\.gif|\.jpg|\.jpeg|\.png)$\N} {1}{0}}
    condition = ${if match {$sender_helo_name} {\N\.\N} {no}{yes}}

drop     message = REJECTED - Graphic Attachment and failed reverse 
lookup \"$mime_filename\" IP: $sender_host_address
    condition = ${if match 
{${lc:$mime_filename}}{\N(\.gif|\.jpg|\.jpeg|\.png)$\N} {1}{0}}
    condition = ${if eq{$sender_host_name}{}}


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to