amavis: make it possible to bypass anti-virus checks
Currently it isn't possible to disable anti virus checks in amavis in ISPconfig, due to the default setup in 50-user Since ClamAV uses a lot of memory, some admins (including me) chooses not to use a anti-virus scanner on incoming mails.
@bypass_virus_checks_maps = ( %bypass_virus_checks, @bypass_virus_checks_acl, $bypass_virus_checks_re);
I propose that a checkbox is added to the Server Config -> Mail tab, which makes it possible to disable anti-virus checks altogether. If the checkbox is checked, then the above parameter should be set to:
@bypass_virus_checks_maps = ( 1, %bypass_virus_checks, @bypass_virus_checks_acl, $bypass_virus_checks_re);
instead....
What do you think?