Re: How do you change the file decoder in amavisd-new?

Nick Tait <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Message-ID <[email protected]>
On 29/08/2021 8:13 pm, Dominic Raferd wrote:

> $log_level = 1

Thanks for the tip about $log_level. I set that in 50-user and now I can 
see that it is using 7z for those file types:

Sep  1 10:44:45 mx amavis[25141]: No ext program for   .rpm, tried: 
rpm2cpio.pl, rpm2cpio
...
Sep  1 10:44:45 mx amavis[25141]: No ext program for   .rar, tried: 
unrar-free
Sep  1 10:44:45 mx amavis[25141]: No ext program for   .arj, tried: arj, 
unarj
...
Sep  1 10:44:45 mx amavis[25141]: No ext program for   .cab, tried: 
cabextract
...
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .zip  at /usr/bin/7za
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .kmz  at /usr/bin/7za
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .7z   at /usr/bin/7zr
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .jar  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .arj  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .rar  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .swf  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .lha  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .iso  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .cab  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: Found decoder for    .rpm  at /usr/bin/7z
Sep  1 10:44:45 mx amavis[25141]: No ext program for   .exe, tried: 
unrar-free; arj, unarj
Sep  1 10:44:45 mx amavis[25141]: No decoder for       .F
Sep  1 10:44:45 mx amavis[25141]: No decoder for       .doc
Sep  1 10:44:45 mx amavis[25141]: No decoder for       .exe
Sep  1 10:44:45 mx amavis[25141]: No decoder for       .zoo

So rather than messing around with @decoders, I'm happy to ignore the 
"No ext program" warnings, in order to keep the configuration as 
standard as possible. :-)

Thanks again,

Nick.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.