You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mime_types.conf 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  5. # parameters defined on the top level
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  8. # parameters defined on the top level
  9. #
  10. # For specific modules or configuration you can also modify
  11. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  12. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  13. #
  14. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  15. mime_types {
  16. file = [
  17. "https://maps.rspamd.com/rspamd/mime_types.inc.zst",
  18. "$LOCAL_CONFDIR/local.d/maps.d/mime_types.inc.local",
  19. "${DBDIR}/mime_types.inc.local",
  20. "fallback+file://${CONFDIR}/maps.d/mime_types.inc"
  21. ]
  22. # Match specific extensions to specific content types
  23. extension_map = {
  24. html = "text/html";
  25. txt = [
  26. "message/disposition-notification",
  27. "text/plain",
  28. "text/rfc822-headers"
  29. ];
  30. pdf = [
  31. "application/octet-stream",
  32. "application/pdf"
  33. ];
  34. }
  35. .include(try=true,priority=5) "${DBDIR}/dynamic/mime_types.conf"
  36. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mime_types.conf"
  37. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mime_types.conf"
  38. }