Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ linux/arm64

* `RSPAMD_ENABLE`: Enable Rspamd service. (default `false`)
* `RSPAMD_WEB_PASSWORD`: Rspamd web password (default `null`)
* `RSPAMD_SECURE_IP`: Bypass password for IPs in this CIDR. `0.0.0.0/0` to disable password (default `127.0.0.1/32`)
* `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`)

Expand Down
1 change: 1 addition & 0 deletions rootfs/etc/cont-init.d/00-env
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ POSTFIX_RELAYHOST_SSL_ENCRYPTION=${POSTFIX_RELAYHOST_SSL_ENCRYPTION:-false}

RSPAMD_ENABLE=${RSPAMD_ENABLE:-false}
#RSPAMD_WEB_PASSWORD=${RSPAMD_WEB_PASSWORD:-null}
RSPAMD_SECURE_IP=${RSPAMD_SECURE_IP:-127.0.0.1/32}
RSPAMD_NO_LOCAL_ADDRS=${RSPAMD_NO_LOCAL_ADDRS:-false}

DKIM_PRIVATE_KEY=/data/dkim/${ANONADDY_DOMAIN}.private
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/14-config-rspamd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ if [ -n "$RSPAMD_WEB_PASSWORD" ]; then
echo "Setting Rspamd worker-controller.inc"
cat >/etc/rspamd/local.d/worker-controller.inc <<EOL
bind_socket = "*:11334";
secure_ip = "127.0.0.1/32";
secure_ip = "${RSPAMD_SECURE_IP}";
password = "${RSPAMD_WEB_PASSWORD}";
enable_password = "${RSPAMD_WEB_PASSWORD}";
EOL
Expand Down