Commit Graph

271 Commits

Author SHA1 Message Date
FreddleSpl0it 5f15475b55 [Rspamd] Remove redis.conf from tracking 2025-03-07 15:18:42 +01:00
Dmitriy Alekseev f6dc0b463f Update Rspamd to 3.11.0 and enable SMTPUTF8 for outgoing mail (#6216)
* Update Rspamd to 3.11

* Enable SMTPUTF8 and hide it from SMTPD greeting

* Update options.inc

* compose: increased rspamd tag
2025-02-17 14:41:39 +01:00
Niklas Meyer b106945c73 Feat/rspamd 3.10.2 (#6122)
* rspamd: update to 3.10.2

* rspamd: fix broken archive_extension gz
2024-10-21 16:03:51 +02:00
Niklas Meyer ee2791d93a rspamd: update to 3.10.1 (#6115)
* rspamd: upgrade to 3.10.1

* rspamd: adapt 30s task timeout per default now
2024-10-18 15:50:45 +02:00
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
Dmitriy Alekseev 8753ea2be6 [Rspamd] Fix bayes config (#6000)
* [Rspamd] Fix bayes config

Add hint about classifier name, and add missing learn_condition

* Update statistic.conf
2024-08-12 10:05:08 +02:00
DerLinkman b6c036496d rspamd: fixed dqs rbl insertion handling 2024-08-07 14:00:04 +02:00
DerLinkman 4b400eadb1 rspamd: Added DQS RBLs when key is set 2024-08-07 13:59:26 +02:00
Dmitriy Alekseev 7f7a869678 Do not add MAILCOW_WHITE on failed DMARC 2024-07-28 13:19:03 +02:00
Michael Kuron 9ca2fb7ccf Remove discontinued SORBS DNSBL 2024-06-08 12:29:08 +02:00
Dmitriy Alekseev 26be1cb602 Set local_addrs in Rspamd 2024-04-01 11:28:06 +03:00
DerLinkman d81f105ed7 [Rspamd] Added customizable global ratelimit file (disabled by default) 2023-12-07 12:04:45 +01:00
DerLinkman 6e9c024b3c Changed weight to score for CLAMD_SPAM 2023-06-27 10:28:52 +02:00
DerLinkman 8cd4ae1e34 Improved Scores 2023-06-23 16:19:37 +02:00
DerLinkman 689856b186 New Symbols defined for Security ClamAV DBs 2023-06-23 16:13:25 +02:00
Dmitriy Alekseev 1a9294b58f [Rspamd] Fix cases of forwarding via freemail
Excluding FREEMAIL_ENVFROM from the FREEMAIL_POLICY_FAILURE expression will allow forwarding mail via freemail services when the initial sender did not have a DKIM signature.
2023-03-04 17:57:52 +02:00
Reto Kupferschmid 46cc022590 fix URLHAUS_ABUSE_CH check 2023-02-28 14:30:38 +01:00
FreddleSpl0it afddcf7f3b replace nullnull.org with fuzzy.mailcow.email 2023-01-24 09:49:49 +01:00
bluewalk e82f3b3975 Added SENDER_ADDRESS and SENDER_NAME as variables for messages 2022-11-17 21:01:18 +01:00
André fdf52dcb17 [Rspamd] Prevent LUA crash
Fixes LUA error when inserting unknown symbol from settings map
2022-07-07 09:20:59 +02:00
andryyy 7e26a2ab98 [Rspamd] Remove neural config due to massive fp 2022-04-13 10:42:11 +02:00
Dmitriy Alekseev 95e57e3968 [Rspamd] Return CAB to archive_extensions 2021-11-18 11:47:56 +02:00
Dmitriy Alekseev 54448bfd38 [Rspamd] Adjust CAB score detection
Adjust CAB score detection, as CAB content can't be extracted by Rspamd
2021-11-18 10:14:24 +02:00
andryyy 5e5ab6cf40 [Rspamd] Add soft reject to dropped messages for Pushover 2021-09-07 19:39:03 +02:00
andryyy bb2351ccf8 [Rspamd] Re-add bad subject maps (_not_ related to previous mem leaks) 2021-09-02 14:09:25 +02:00
andryyy e616755072 [Web] Fix app password editing, fixes #4239 2021-09-01 18:11:00 +02:00
andryyy 8ee997b1a3 [Rspamd] Base on bullseye; remove nullnull map to _perhaps_ prevent a memleak 2021-09-01 15:21:43 +02:00
andryyy 649a5c0159 [Rspamd] More generous timeout but no retransmit allowed for oletools: prevent further timeouts 2021-08-16 10:17:52 +02:00
andryyy 98a778a059 [Rspamd] Increase task timeout to prevent expensive tasks to cause a timeout; Set max size for macro scans to 3 MiB 2021-08-16 10:01:41 +02:00
andryyy bc8e87fba6 [Rspamd] Olefy: reduce max scan size to 5 MiB 2021-08-16 06:49:18 +02:00
Sven Michels 376ef76022 [Rspamd] Add soft reject on task timeout (#4189)
As we have seen issues in DNS processing actually stops rspamd from
processing a message, which leads to missing tag insertion for example,
we turn on soft reject on task timeout. Behavior is the same as with
greylisting for example, so the mail will be delayed/soft rejected, but
as DNS issues usually are most likely temporarily, it should get delivered
on the second try.
2021-07-19 12:09:32 +02:00
andryyy b5bf97eec9 [Rspamd] Revert custom DNS timeouts 2021-07-11 17:31:40 +02:00
andryyy b3959e8071 [Rspamd] DeltaChat improvements 2021-07-09 09:19:06 +02:00
andryyy 5a6d970794 [Rspamd] Better support for DeltaChat 2021-07-09 07:42:37 +02:00
andryyy 06beda7c7c [Rspamd] Increase DNS timeout and retransmits 2021-06-21 22:03:26 +02:00
Dmitriy Alekseev 583663f6d1 [Rspamd] Fix FREEMAIL_POLICY_FAILURE with SPF_SOFTFAIL (#4142)
Add really low negative score to SOFTFAIL policy symbols to get FREEMAIL_POLICY_FAILURE triggered correctly
2021-06-11 16:10:28 +03:00
andryyy d7ecf899c8 [Rspamd] Reduce 00 bad subjects score 2021-06-05 17:45:27 +02:00
andryyy b6b64f9470 [Rspamd] rename symbol from bad_regex to bad_subject 2021-06-03 08:18:10 +02:00
andryyy fe483d882d [Rspamd] Replace 00 bad domains by bad regex map (wip) 2021-05-27 13:17:35 +02:00
andryyy 4ede07854d [Rspamd] Replace 00 bad domains by bad regex map (wip) 2021-05-27 12:34:33 +02:00
andryyy 4b28dbbabc [Rspamd] Replace 00 bad domains by bad regex map (wip) 2021-05-27 12:33:47 +02:00
andryyy 56a085b632 [Rspamd] Add 00 abuse domains (wip!) 2021-05-24 11:12:56 +02:00
andryyy cf9d3e00c8 [Rspamd] Create bad header map 2021-05-23 23:12:07 +02:00
Dmitriy Alekseev bb1b76454d [Rspamd] Remove score from SIEVE_HOST (#4080)
Commit e7a5c98704 remove upstream spam flag score
2021-05-04 18:51:07 +02:00
Dmitriy Alekseev bbb75b0d32 [Rspamd] Fix for Respect Redis REPLICA in reputation plugin (#4046) 2021-04-18 22:41:08 +03:00
André Peters ee6ca4eaaa Revert "[Rspamd] Respect Redis REPLICA in reputation plugin (#4046)" (#4065)
This reverts commit 7fdc4c2cc3.
2021-04-18 21:02:29 +02:00
Dmitriy Alekseev 694e3d652f [Rspamd] Sign Disposition-Notification Headers (#4020)
* [Rspamd] Sign Disposition-Notification Headers

Add more Headers to DKIM signing

* Update dkim_signing.conf
2021-04-03 12:43:20 +02:00
Der-Jan 7fdc4c2cc3 [Rspamd] Respect Redis REPLICA in reputation plugin (#4046) 2021-04-02 21:34:52 +02:00
andryyy 38e5dc37d2 [Rspamd] Edit RBL 2021-02-14 10:47:05 +01:00
andryyy 386d6109c8 Merge branch 'master' of github.com:mailcow/mailcow-dockerized 2021-02-11 09:36:18 +01:00