Skip to content

Commit

Permalink
fix(mda): added authentication to rspamc to learn spam/ham again
Browse files Browse the repository at this point in the history
  • Loading branch information
jeboehm committed May 25, 2022
1 parent ab71133 commit d58b23b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ FILTER_VIRUS=true
ENABLE_IMAP=true
ENABLE_POP3=true
CONTROLLER_PASSWORD=changeme
CONTROLLER_SECURE_NETWORK=172.16.0.0/12
WAITSTART_TIMEOUT=2m
RECIPIENT_DELIMITER=-
3 changes: 2 additions & 1 deletion filter/rootfs/etc/rspamd/local.d/worker-controller.inc.templ
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bind_socket = "*:11334";
secure_ip = "127.0.0.1";
secure_ip = "::1";
secure_ip = "{{$.Env.CONTROLLER_SECURE_NETWORK}}";

password = "{{$.Env.CONTROLLER_PASSWORD_ENC}}"
enable_password = "{{$.Env.CONTROLLER_PASSWORD_ENC}}"
2 changes: 1 addition & 1 deletion mda/rootfs/usr/lib/dovecot/sieve/rspamc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

ACTION=${1}

curl -q -s --connect-timeout 60 --data-binary @- http://${FILTER_HOST}:11334/${ACTION}
curl -q -s -H "Password: ${CONTROLLER_PASSWORD}" --connect-timeout 10 --data-binary @- http://${FILTER_HOST}:11334/${ACTION}

0 comments on commit d58b23b

Please sign in to comment.