diff --git a/README.md b/README.md index b7ee8a4..530e31b 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,7 @@ linux/arm64 * `RSPAMD_ENABLE`: Enable Rspamd service. (default `false`) * `RSPAMD_WEB_PASSWORD`: Rspamd web password (default `null`) * `RSPAMD_NO_LOCAL_ADDRS`: Disable Rspamd local networks (default `false`) +* `RSPAMD_SMTPD_MILTERS`: A list of Milter (space or comma as separated) applications for new mail that arrives (default `inet:127.0.0.1:11332`) > [!NOTE] > `RSPAMD_WEB_PASSWORD_FILE` can be used to fill in the value from a file, diff --git a/rootfs/etc/cont-init.d/00-env b/rootfs/etc/cont-init.d/00-env index 7da2e79..b8d90a1 100755 --- a/rootfs/etc/cont-init.d/00-env +++ b/rootfs/etc/cont-init.d/00-env @@ -97,7 +97,7 @@ DKIM_PRIVATE_KEY=/data/dkim/${ANONADDY_DOMAIN}.private SMTPD_MILTERS="" if [ "$RSPAMD_ENABLE" = "true" ] && [ -f "$DKIM_PRIVATE_KEY" ]; then - SMTPD_MILTERS="inet:127.0.0.1:11332" + SMTPD_MILTERS=${RSPAMD_SMTPD_MILTERS:-inet:127.0.0.1:11332} fi # Keep them to check if users are still using an old configuration