Advertisement
Guest User

filetype.rules.conf

a guest
Nov 26th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.59 KB | None | 0 0
  1. #
  2. # NOTE: Fields are separated by TAB characters --- Important!
  3. #
  4. # Syntax is allow/deny/deny+delete/rename/email-addresses,
  5. #           then regular expression,
  6. #           then log text,
  7. #           then user report text.
  8. #
  9. # The "email-addresses" can be a space or comma-separated list of email
  10. # addresses. If the rule hits, the message will be sent to these address(es)
  11. # instead of the original recipients.
  12.  
  13. # If a rule is a "rename" rule, then the attachment filename will be renamed
  14. # according to the "Default Rename Pattern" setting in MailScanner.conf.
  15.  
  16. #
  17. # If none of the rules match, then the filetype is allowed.
  18. #
  19. # An optional fifth field can also be added before the "log text", which
  20. # makes the checked text check against the MIME type of the attachment
  21. # as determined by the output of the "file -i" command.
  22.  
  23. allow   text        -           -
  24. allow   \bscript    -           -
  25. allow   archive     -           -
  26. allow   postscript  -           -
  27. deny    self-extract    No self-extracting archives No self-extracting archives allowed
  28. deny    executable  No executables      No programs allowed
  29. #EXAMPLE: deny  -   x-dosexec   No DOS executables  No DOS programs allowed
  30. deny    ELF     No executables      No programs allowed
  31. rename  Registry    Windows Registry entries (renamed)  Windows Registry files (renamed)
  32.  
  33. #deny   MPEG        No MPEG movies      No MPEG movies allowed
  34. #deny   AVI     No AVI movies       No AVI movies allowed
  35. #deny   MNG     No MNG/PNG movies   No MNG movies allowed
  36. #deny   QuickTime   No QuickTime movies No QuickTime movies allowed
  37. #deny   ASF     No Windows media    No Windows media files allowed
  38. #deny   metafont    No Windows Metafont drawings    No WMF drawings allowed
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement