whitelist_contact_form is now possible with user settings

This commit is contained in:
danwin1210 committed 2026-10-13 11:21:47 +02:00
1 parent 09832ceef7
commit 1ff7d4131d
1 file changed
+2 -7
+2 -7
View File
@@ -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];
}
}
}