LVLogo

[univention corporate server] reject more email attachements,.. amavis

2022-03-10 — Thomas Raschbacher (LordVan)

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:

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)

Univention Corporate Server as (internal and public facing) Mail server Upgrading mezzanine (forced to due to move to python3.10)