diff --git a/data/Dockerfiles/rspamd/docker-entrypoint.sh b/data/Dockerfiles/rspamd/docker-entrypoint.sh index ab5f0a10..5c9f8e49 100755 --- a/data/Dockerfiles/rspamd/docker-entrypoint.sh +++ b/data/Dockerfiles/rspamd/docker-entrypoint.sh @@ -8,6 +8,8 @@ touch /etc/rspamd/rspamd.conf.local \ chmod 755 /var/lib/rspamd +addgroup --system --gid 82 www-access + [[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Autogenerated by mailcow' > /etc/rspamd/override.d/worker-controller-password.inc DOVECOT_V4= @@ -49,8 +51,10 @@ touch /etc/rspamd/custom/global_mime_from_blacklist.map \ /etc/rspamd/custom/bad_words_de.map # www-data (82) group needs to write to these files -chown -R _rspamd:82 /etc/rspamd/custom -chmod -R g+w /etc/rspamd/custom +chown root:root /etc/rspamd/custom/ +chmod 0755 /etc/rspamd/custom/ +chown -R _rspamd:www-access /etc/rspamd/custom/* +chmod -R 664 /etc/rspamd/custom/* # Run hooks for file in /hooks/*; do diff --git a/data/web/admin.php b/data/web/admin.php index b0481e5a..4e18822d 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -17,6 +17,7 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
=$lang['admin']['rspamd_global_filters_info'];?>
+/.+@domain\.tld/i
)./.+@domain\.tld/i
).