Update mime_types.conf configuration #6013
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution Guidelines
What does this PR include?
Short Description
In the last months and years, the default
mime_types.conf
of rspamd has changed and it might be also useful to make some adjustments to the weight of certain file extensions.This PR is removing all file extensions from
mime_types.conf
which are already in rspamd's default configuration at rspamd/src/plugins/lua/mime_types.lua. If file extension is not present or has a different score compared to rspamd default, it is still in the list.There are also a few major differences to certain file extensions, which might be useful to discuss and carefully adjust. For example,
.exe
files are rated very 'badly' due to high chance of being malicious, so are other extensions likebat
,cmd
, etc.Current suggestion:
As a important reminder: For all remaining and additional file extensions and score weights, please check above default rspamd configuration!
This is meant as a sort-of open discussion on the weighting, I find a good way to achieve weighting fitting most usecases.
Affected Containers