1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00
mailcow: dockerized - 🐮 + 🐋 = 💕
Go to file
Patrik Kernstock fce93609dd
Update mime_types.conf configuration (#6013)
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](https://github.com/rspamd/rspamd/blob/master/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 like `bat`, `cmd`, etc.

Current suggestion:
```lua
# Extensions that are treated as 'bad'
# Number is score multiply factor
bad_extensions = {
  apk = 4,
  appx = 4,
  appxbundle = 4,
  bat = 8,
  cab = 20,
  cmd = 8,
  com = 20,
  diagcfg = 4,
  diagpack = 4,
  dmg = 8,
  ex = 20,
  ex_ = 20,
  exe = 20,
  img = 4,
  jar = 8,
  jnlp = 8,
  js = 8,
  jse = 8,
  lnk = 20,
  mjs = 8,
  msi = 4,
  msix = 4,
  msixbundle = 4,
  ps1 = 8,
  scr = 20,
  sct = 20,
  vb = 20,
  vbe = 20,
  vbs = 20,
  vhd = 4,
  py = 4,
  reg = 8,
  scf = 8,
  vhdx = 4,
};

# Extensions that are particularly penalized for archives
bad_archive_extensions = {
  pptx = 0.5,
  docx = 0.5,
  xlsx = 0.5,
  pdf = 1.0,
  jar = 12,
  jnlp = 12,
  bat = 12,
  cmd = 12,
};

# Used to detect another archive in archive
archive_extensions = {
  tar = 1,
  ['tar.gz'] = 1,
};
```

**As a important reminder**: For all remaining and additional file extensions and score weights, please check above default rspamd configuration!
2024-10-17 09:11:55 +02:00
.github chore(deps): update thollander/actions-comment-pull-request action to v3 (#6102) 2024-10-15 10:34:19 +02:00
data Update mime_types.conf configuration (#6013) 2024-10-17 09:11:55 +02:00
helper-scripts chore(deps): update dependency nextcloud/server to v28.0.11 (#6101) 2024-10-15 10:34:57 +02:00
.editorconfig [SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx 2019-10-19 12:48:56 +02:00
.env Docs 2017-03-02 11:23:23 +01:00
.gitignore [Netfilter] add mailcow isolation rule to MAILCOW chain 2024-02-02 10:10:11 +01:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2017-06-30 07:03:10 +08:00
CONTRIBUTING.md Updated contributing.md 2024-08-15 11:32:28 +02:00
create_cold_standby.sh Fix permissions chmod +x 2022-07-08 18:29:34 +02:00
docker-compose.yml php: upgrade to alpine 3.20 (base os) (#6106) 2024-10-16 10:35:54 +02:00
generate_config.sh Replace weird character to the correct ' (#6029) 2024-08-20 08:08:34 +02:00
LICENSE License 2017-05-18 09:48:22 +02:00
README.md Use full mastodon name instead 2023-11-27 14:35:09 +01:00
SECURITY.md Create SECURITY.md 2022-07-11 21:06:23 +02:00
update.sh feat: Added check for newer version tags on remote (#6054) 2024-09-02 15:40:29 +02:00

mailcow: dockerized - 🐮 + 🐋 = 💕

Translation status Twitter URL Mastodon Follow

Want to support mailcow?

Please consider a support contract with Servercow to support further development. We support you while you support us. :)

You can also get a SAL which is a one-time payment with no liabilities or returning fees.

Or just spread the word: moo.

Info, documentation and support

Please see the official documentation for installation and support instructions. 🐄

🐛 If you found a critical security issue, please mail us to info at servercow.de.

Cowmunity

mailcow community

Telegram mailcow channel

Telegram mailcow Off-Topic channel

Official 𝕏 (Twitter) Account

Official Mastodon Account

Telegram desktop clients are available for multiple platforms. You can search the groups history for keywords.

Misc

Important: mailcow makes use of various open-source software. Please assure you agree with their license before using mailcow. Any part of mailcow itself is released under GNU General Public License, Version 3.

mailcow is a registered word mark of The Infrastructure Company GmbH, Parkstr. 42, 47877 Willich, Germany.

The project is managed and maintained by The Infrastructure Company GmbH.

Originated from @andryyy (André)