2 msgpostmap header_checks error
10 msgmailbox_command (dovecot lda) stopped working, ...
5 msgmynetworks via LDAP lookup
7 msgLocal recipient table in LDAP problem
2 msgproxy_read_maps
1 msgsmtpd_restriction_class and it's lookup
8 msgMessage Rejected

Customize to filter attachment ?
\ Truong Tan Son (24 Jan 2008)
. \ MrC (24 Jan 2008)
. . \ Victor Duchovni (24 Jan 2008)
. . . \ MrC (24 Jan 2008)
. \ Truong Tan Son (24 Jan 2008)
. \ Truong Tan Son (24 Jan 2008)
. . \ Victor Duchovni (24 Jan 2008)
. . . \ Noel Jones (24 Jan 2008)
. . . . \ (Wietse Venema) (24 Jan 2008)
. . . . \ MrC (24 Jan 2008)
. . . . . \ Noel Jones (24 Jan 2008)
. . . . . . \ Kurt Buff (24 Jan 2008)

2 msgRelay question
14 msgunnecessary routing?
4 msgdo not use 'reject_maps_rbl'?
9 msgFwd: Postfix in OpenVZ.
2 msgbypass body_checks for local mail?
4 msgcatchall with relay_recipient_maps
4 msg'Name server failure' is output
3 msgsmtp_sasl_password_maps lookups
16 msgPostfix Queues on a Ram Disk
15 msgsendmail compared to smtp sending
3 msgPostfix does not recognize remote emails
2 msgHow to disable SSLv2 on smtpd opportunistic TLS?
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,
--



© 2004-2008 readlist.com