legitimate mail classified by amavis as

i use amavisd-new as content filter for incoming messages. today it decided to classify a plain-text part of the message containing:

""""IH:TEST:SE RIES""""

as a python executable and did not deliver the message.

root@stosmtpfilter:~# cat /var/lib/amavis/tmp/amavis-20130613T094844-30897-e_sKrwm4/parts/x
""""IH:TEST:SE RIES""""
root@stosmtpfilter:~# file /var/lib/amavis/tmp/amavis-20130613T094844-30897-e_sKrwm4/parts/x
/var/lib/amavis/tmp/amavis-20130613T094844-30897-e_sKrwm4/parts/x: Python script, ASCII text executable

my solution – in the config file for amavis i’ve added an exception for anything that is detected to be python scripts:

unshift @map_full_type_to_short_type_maps, \new_RE(
[qr/\bASCII text executable\b/i                => 'txt'], # normally it's mapped to exe in /usr/sbin/amavisd-new
);
# rest of the standard mappings will be unmodified

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)