in /etc/postfix/main.cf enable the body checks with this line:
body_checks = pcre:/etc/postfix/body_checks
Now put something in this file (/etc/postfix/body_checks):
/^(.*)name\=\"(.*)\.(hta|vb[esx]|ws[fh]|js[e]|bat|cmd)\"$/ REJECT
This will filter attachments (probably dangerous) of various types.
Remove from the above line, whatever you want to allow.
Of course you can add some more lines to make postfix a simple spam
filter:
/special offer email/ REJECT
/mortgage rates/ REJECT
|