We got some "new" trojans/viruses lately .. in .jar files for a change so I went ahead to look how to configure amavis on UCR so that it blocks that too. First I enabled all the banned lists / filters for attachements:
- mail/antivir/banned/basic_ext
- mail/antivir/banned/double_ext
- mail/antivir/banned/file_type
- mail/antivir/banned/long_ext
- mail/antivir/banned/mime_type
- mail/antivir/banned/rfc2046
More info about them at the UCR help pages (german article).
Then I noticed while several extensions are blocked .jar is not one of them. So since the /etc/amavis/* config files are generated by ucr I to add that to /etc/univention/templates/files/etc/amavis/conf.d/60-univention instead. I just added it to the list of banned file types (right after tnef line 735 in my current install).
Don't forge to run this afterwards:
ucr commit /etc/amavis/conf.d/60-univention; /etc/init.d/amavis restart
(or use service amavis restart if you prefer to use systemd directly instead of the init script)
