Re: [exim] Question: How to block HTML-only emails with exim…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Ian Eiloart
Päiväys:  
Vastaanottaja: Exim
Aihe: Re: [exim] Question: How to block HTML-only emails with exim?

> On 22 Jan 2016, at 13:48, Jeremy Harris <jgh@???> wrote:
>
> On 22/01/16 08:47, Peter Funk wrote:
>> I would like our exim mail server to block any incoming emails
>> which only have one or more HTML attachment(s) and don't
>> contain at least one plain text attachment.
>
> Have a look into the ACL configurable via al_smtp_mime.
> Use that to count HTML parts and plaintext parts.
> Then in data ACL, evaluate and deny where appropriate.
>
> http://exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html#SECTscanmimepart
> --
> Cheers,
> Jeremy


Alternatively, if you use SpamAssassin, there’s a rule that looks for this. You could just bump up the score on that rule.

--
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148