OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Todd Lahman (toddliswireless.net)
Date: Sat Dec 01 2001 - 21:29:19 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    > In /etc/postfix/main.cf I have:
    > body_checks = regexp:/etc/postfix/body_checks

    That's close you just left off the end:
    body_checks = regexp:/etc/postfix/body_checks.regexp

    > /etc/postfix/body_checks contains only the following (as one line):
    > /^(Content-(Type|Disposition):.*|[[:space:]]*(file)?)name=("[^"]*|[^[:space:
    > ]]*)\.(exe|com|scr|pif|bat|lnk|dll|vbs|js)[[:>:]]/ REJECT

    The following line should all be on one line, and it will reject what you want. Remove any entries that you want to allow through:

    /^(content.*[[:space:]]+|[[:space:]]*)(filename|name)=".*\.(scr|pif|exe|com|bat|shs|shb|vxd|rm|chm|vbs|ini|cmd|do|hta|xl|reg|lnk|js|jse)"/ REJECT

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users