]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Enable aliases plugin by default to restore plus-addressing
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 2 Dec 2025 14:52:18 +0000 (14:52 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 2 Dec 2025 14:52:18 +0000 (14:52 +0000)
Fixes #5768: Settings lookup was broken for subaddressed recipients
(e.g., user+folder@example.com) because the aliases plugin was
disabled by default after it was moved from rules/misc.lua in 3.14.

This restores the pre-3.14 behavior where plus-tags are stripped
and virtual recipients are created for settings matching.

conf/modules.d/aliases.conf
rules/forwarding.lua
src/plugins/lua/aliases.lua

index dceb76d2aec199444686d15e12213d8c88f94afa..037173b5f7b0439a81a96fcc0a58286fe07a373f 100644 (file)
@@ -8,17 +8,13 @@
 # - Local domain detection
 # - Message classification (inbound/outbound/internal)
 # - Service-specific rules (Gmail, plus-aliases)
-# - Forwarding detection (moved from rules/forwarding.lua for correct ordering)
-#
-# IMPORTANT: This module includes forwarding detection functionality.
-# If you enable this module, you should DISABLE rules/forwarding.lua to avoid
-# duplicate symbol registration.
+# - Forwarding detection
 #
 # Documentation: https://rspamd.com/doc/modules/aliases.html
 
 aliases {
-  # Enable/disable the module
-  #enabled = true;
+  # Enable/disable the module (enabled by default since 3.14.2)
+  # enabled = true;
 
   # System aliases (Unix /etc/aliases format)
   # Can be:
index 9bcca5ced58cb0f65f9ac14a05a4b865f4c65695..880386ba485b77ec30082fc4b0ee0177fa9a0b85 100644 (file)
@@ -19,17 +19,7 @@ limitations under the License.
 -- All forwarding detection functionality has been integrated into the aliases
 -- plugin to ensure correct execution order (prefilter stage before classification).
 --
--- Symbols now registered by aliases plugin:
+-- Symbols now registered by aliases plugin (enabled by default since 3.14.2):
 --   FWD_GOOGLE, FWD_YANDEX, FWD_MAILRU
 --   FWD_SRS, FWD_SIEVE, FWD_CPANEL
 --   FORWARDED
---
--- To use forwarding detection, enable the aliases plugin:
---
---   # local.d/aliases.conf
---   aliases {
---     enabled = true;
---     local_domains = ["your-domain.com"];
---   }
---
--- See: ALIASES_FORWARDING_MIGRATION.md for migration details
index c65e72962b2952850ced1c003d9cab5dea3b65dd..30a537850c79368ca05c9be45b9245a59d8bae02 100644 (file)
@@ -247,7 +247,7 @@ end
 
 -- Configuration
 local settings = {
-  enabled = false,
+  enabled = true,
 
   --Backend configurations
   system_aliases = nil,