[Exim] HTML system filter

Top Page
Delete this message
Reply to this message
Author: Daniel Otis-Vigil
Date:  
To: exim-users
Subject: [Exim] HTML system filter
I added this to my system_filter.exim file but the bounce is bounced to
postmaster because it has a copy of the HTML email in it. How can I make
this bounce message go through?

Daniel

# reject HTML formatted emails
if $message_body contains "<HTML>" then
  fail text "This message has been rejected because it\n\
             \tcontains HTML formatting.  HTML formatted\n\
             \temail can hide potentially damaging scripts\n\
             \tor comprimise privacy.  Please re-send in\n\
             \tplain-text format."
  seen finish
endif