From 1ff7d4131da7fd0bda7244801129cb357fc5af1c Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Tue, 13 Oct 2026 11:21:47 +0200 Subject: [PATCH] whitelist_contact_form is now possible with user settings --- common_config.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/common_config.php b/common_config.php index 4f952f3..d1cb8d4 100644 --- a/common_config.php +++ b/common_config.php @@ -16,12 +16,7 @@ const ALLOW_ACCOUNT_NEVER_DELETE = false; // Whether to allow users to set their const RSPAMD_SETTINGS_MAP_TOKEN = 'CHANGE_ME_TO_A_LONG_RANDOM_SECRET'; // Token used to authenticate requests to the Rspamd settings map endpoint const SPAM_REJECT_SCORE_OPTIONS = [0, 5, 8, 10, 12, 15, 20, 25, 30]; // Allowed spam reject scores const DEFAULT_SPAM_REJECT_SCORE = 15; // Default spam reject score -const CUSTOM_RSPAMD_SETTINGS = ' whitelist_contact_form { - priority = low; - rcpt = "daniel@danwin1210.de"; - want_spam = yes; - from = "www-data@danwin1210.de"; - }'; // Custom Rspamd settings to be added to the Rspamd settings map +const CUSTOM_RSPAMD_SETTINGS = ''; // Custom Rspamd settings to be added to the Rspamd settings map const PERSISTENT = true; // persistent database connection const CAPTCHA_DIFFICULTY = 1; // captcha difficulty from 0 to 4 const RESERVED_USERNAMES = ['about', 'abuse', 'admin', 'administrator', 'billing', 'contact', 'daemon', 'ftp', 'help', 'hostmaster', 'info', 'legal', 'list', 'list-request', 'lists', 'maildaemon', 'mailerdaemon', 'mailer-daemon', 'marketing', 'media', 'news', 'newsletter', 'nobody', 'noc', 'noreply', 'no-reply', 'notification', 'notifications', 'notify', 'offer', 'offers', 'office', 'official', 'order', 'orders', 'phish', 'phishing', 'postmaster', 'root', 'sale', 'sales', 'security', 'service', 'services', 'shop', 'shopping', 'spam', 'staff', 'support', 'survey', 'system', 'team', 'teams', 'unsubscribe', 'uucp', 'usenet', 'user', 'username', 'users', 'web', 'webmail', 'webmaster', 'webmasters', 'welcome', 'www']; // list of reserved usernames that can not be used on public registration @@ -495,4 +490,4 @@ function bytes_to_human_readable(int $bytes) : string { }else{ return $bytes . $suffix[0]; } -} \ No newline at end of file +}