Подскажите плз.
Настраиваю проверку прикрепленного архива средствами Exim/
Первые 2проверки работают, 3я нет.
Как правильно настроить вызов tar.
deny message = A .zip attachment contains a Windows-executable file
condition = ${if match{$mime_filename}{\N(?i)\.zip$\N}}
condition = ${if def:sender_host_address}
!authenticated = *
decode = default
hosts = !+relay_from_hosts
log_message = forbidden binary in attachment: filename=$mime_filename, \
recipients = $recipients
condition = ${if match{${run{/usr/bin/unzip -l \
$mime_decoded_filename}}}\
{\N(?i)\.(exe|com|vbs|bat|pif|scr|wsf|hta|js\
|cmd|chm|cpl|jsp|reg|vbe|lnk|dll|sys|btm|dat|msi|jse|prf|vb)\n\N}}
# accept
deny message = Probably this message contains dangerous file in attachment
condition = ${if match{$mime_filename}{\N(?i)\.(zip|rar|7z)$\N}}
decode = default
condition = ${if match{${run{/usr/bin/7z l $mime_decoded_filename}}}{\N(?i)\.(exe|com|vbs|bat|pif|scr|hta|js|jse|cmd|chm|cpl|jsp|reg|vbe|lnk|dll|sys)\n\N}
log_message = forbidden attachment: filename=$mime_filename, content-type=$mime_content_type, recipients=$recipients
deny message = Probably this message contains dangerous file in attachment
condition = ${if match{$mime_filename}{\N(?i)\.tar$\N}}
decode = default
condition = ${if match{${run{/bin/tar l $mime_decoded_filename}}}{\N(?i)\.(exe|com|vbs|bat|pif|scr|hta|js|jse|cmd|chm|cpl|jsp|reg|vbe|lnk|dll|sys)\n\N}}