|
| | Subject: | Customize to filter attachment ? | | Group: | Postfix-users | | From: | Truong Tan Son | | Date: | 24 Jan 2008 |
Dear Sir,
I make header_check to filter executable attachment:
/^content-(type|disposition):.*name[[:space:]]*=.*\.(bat|cmd|com|exe)/
REJECT Bad attachment file name extension: $2
It take effect to REJECT all:
.com
.com.doc
.com).gif
**How do we do with attachment name :
Document.com REJECT
Document.com.doc ACCEPT
Document.com(any*Character) ACCEPT
Please support.
Thanks you and best regards,
--
|