OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Wietse Venema (wietseporcupine.org)
Date: Sat Dec 01 2001 - 22:26:57 CST

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

    Your regexp library routine is broken. The pattern below works fine
    with a correctly implemented POSIX regexp implementation.

            Wietse

    Michael Ellery:
    > 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
    >
    >

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