Re: [exim] Malformed messages - demime - deprecated - use a…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Daniel Botting
Päiväys:  
Vastaanottaja: Jeremy Harris, exim-users
Aihe: Re: [exim] Malformed messages - demime - deprecated - use acl_smtp_mime
Hi Jeremy,

Thank you for your prompt reply.

I've incorporated that (I believe this is correct):

deny message       = Malformed message, cannot scan for virus
($mime_anomaly_text)

       condition       = ${if def:mime_anomaly_text {no}{yes}}


Interestingly I did a quick websearch and then found this as well from
the lists:

https://lists.exim.org/lurker/message/20050525.133654.41abf0b8.nl.html

If you follow the thread it has some interesting examples in general.

Many thanks

Daniel

On 09/09/2019 17:42, Jeremy Harris via Exim-users wrote:
> On 09/09/2019 15:22, Daniel Botting via Exim-users wrote:
>> So we have in our config, which is a common example:
>>
>> deny message   = Malformed message, cannot scan for virus ($demime_reason)
>>         demime    = *
>>         condition = ${if >{$demime_errorlevel}{2}{1}{0}}
>>
>> I have been looking for a number of days now for a replacement using
>> acl_smtp_mime, if anybody is able to assist that would be much appreciated.
>
> Reading around the code there appear to be a couple of totally
> undocumented variables "mime_anomaly_level" and "mime_anomaly_text".
>
> Since 2004.
>
> I suspect def:mime_anomaly_text would be a reasonable condition.


--
Daniel Botting
Junior Systems Administrator
Codethink Ltd.
3rd Floor Dale House,
35 Dale Street,
Manchester, M1 2HF
United Kingdom

http://www.codethink.co.uk/
We respect your privacy. See https://www.codethink.co.uk/privacy.html