[Rspamd] Quarantine: store mail when Q_EXCLUDE_DOMAINS is not set

This commit is contained in:
FreddleSpl0it committed 2026-11-09 23:21:14 +01:00
1 parent 262de81da1
commit 38b031e10c
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ foreach ($rcpts as $rcpt) {
}
// Skip if domain is excluded
if (in_array($parsed_rcpt['domain'], $exclude_domains)) {
if (is_array($exclude_domains) && in_array($parsed_rcpt['domain'], $exclude_domains)) {
error_log(sprintf("QUARANTINE: Skipped domain %s", $parsed_rcpt['domain']) . PHP_EOL);
continue;
}