Skip to content

Commit

Permalink
Merge pull request #307 from inkarnation/feat-configurable-rspamd-mil…
Browse files Browse the repository at this point in the history
…ter-apps

feat: make SMTPD_MILTERS configurable via addy.env
  • Loading branch information
crazy-max authored Jan 22, 2025
2 parents 511c338 + 399a275 commit de0599a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/00-env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de0599a

Please sign in to comment.