Amavis – Use amavisd-new to block the emails with executable attachments.

Edit the amavisd configuration file (/etc/amavisd.conf or /etc/amavisd/amavisd.conf, kui seda konfi faili pole loo ise fail nt. /etc/amavis/conf.d/keelamanus)
ja kopeeri allolevad read sinna loodud faili

$banned_filename_re = new_RE(
qr’.\.(bat|exe|scr)$’i,
qr’^\.(exe|zip|lha|tnef)$’i,
);

ja siis tee amavis?le restart

/etc/init.d/amavis restart