2016-03-10 20:16:01 +01:00
|
|
|
# Please don't modify this file as your changes might be overwritten with
|
|
|
|
# the next update.
|
|
|
|
#
|
|
|
|
# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
|
|
|
|
# parameters defined on the top level
|
|
|
|
#
|
|
|
|
# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
|
|
|
|
# parameters defined on the top level
|
|
|
|
#
|
|
|
|
# For specific modules or configuration you can also modify
|
|
|
|
# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
|
|
|
|
# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
|
|
|
|
#
|
|
|
|
# See https://rspamd.com/doc/tutorials/writing_rules.html for details
|
|
|
|
|
2016-01-23 15:36:25 +01:00
|
|
|
mime_types {
|
2017-01-09 18:33:30 +01:00
|
|
|
file = [
|
2018-07-17 17:58:47 +02:00
|
|
|
"https://maps.rspamd.com/rspamd/mime_types.inc.zst",
|
2018-07-18 15:26:25 +02:00
|
|
|
"${DBDIR}/mime_types.inc.local",
|
|
|
|
"fallback+file://${CONFDIR}/mime_types.inc"
|
2017-01-09 18:33:30 +01:00
|
|
|
]
|
2016-03-17 14:14:45 +01:00
|
|
|
|
|
|
|
# Match specific extensions to specific content types
|
|
|
|
extension_map = {
|
|
|
|
html = "text/html";
|
2016-03-22 11:11:26 +01:00
|
|
|
txt = [
|
|
|
|
"message/disposition-notification",
|
|
|
|
"text/plain",
|
|
|
|
"text/rfc822-headers"
|
|
|
|
];
|
2016-06-15 16:54:26 +02:00
|
|
|
pdf = [
|
|
|
|
"application/octet-stream",
|
|
|
|
"application/pdf"
|
|
|
|
];
|
2016-03-17 14:14:45 +01:00
|
|
|
}
|
2016-07-26 20:01:30 +02:00
|
|
|
|
|
|
|
.include(try=true,priority=5) "${DBDIR}/dynamic/mime_types.conf"
|
|
|
|
.include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mime_types.conf"
|
|
|
|
.include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mime_types.conf"
|
2016-01-23 15:36:25 +01:00
|
|
|
}
|