On Sun, 2003-09-21 at 19:15, Joe wrote:
Kevin Waterson wrote:
Can it be done without installing 3rd party software?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:
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"
Can a similar reject message be generated through the use of procmail ?
I think it's possible, but it would have to be done as an email message back to the sender rather than as a rejection, since by the time procmail gets the message, the system has already accepted it. Rejecting it during the smtp connection uses less cpu cycles, and is more straightforward to implement.
Joe
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list