It can be easily done using postfix v2 from rawhide and adding a line of text 2 main.cf and creating the file mime_header_checks with contents shown below:
Can it be done without installing 3rd party software?
in main.cf: mime_header_checks = regexp:/etc/postfix/mime_header_checks
in mime_header_checks:
/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.+\.(lnk|asd|hlp|ocx|reg|bat|c[ho]m|cmd|exe|dll|vxd|pif|scr|hta|jse?|sh[mbs]|vb[esx]|ws[fh]|wav|mov|wmf|xl))"?\s*$/ REJECT Attachment type not allowed. File "$2" has the unacceptable extension "$3"
This completely stops the microsoft silliness.
Joe
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list