OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Alex Michlin (alexdelete.org)
Date: Mon Apr 29 2002 - 16:45:11 CDT

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

    I am running postfix 1.1.7 and have the following as a body_check:

    # Block banned file types
    /^Content-(Disposition|Type):.*name="?.*\.(exe|bat|com|pif|vb|lnk|scr|reg|chm|
      wsh|js|inf|shs|job|ini|shb|scp|scf|wsc|sct|dll)/ REJECT The attached file
      type(s) are banned by this server.

    This filter works well except I noticed today the following log entry:

    Apr 29 16:21:01 <hostname> postfix/cleanup[31725]: 1014E13040A: reject:
    body Content-Disposition: attachment; filename="TheStreet.com Renl (02)
    Binder.doc";...

    Is there a way to ignore .com in the filename, but still check for the
    .com extension of the file? I'm open for suggestions and recomendations.

    TIA,

    Alex

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