OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Michael Ellery (michaelelleryyahoo.com)
Date: Sat Dec 01 2001 - 21:01:57 CST

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

    I need to block attachments - so I searched the archives and found an
    expression (from Wietse) that would suit me, but it isn't working. I ran
    postmap -q - regexp:/etc/postfix/body_checks <testmail and it returned:
    postmap: warning: body_checks, line 0: error in regexp: Invalid character
    class name.

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

    /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

    Something isn't quite right, but what is it?

    Thanks in Advance,
    Michael

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