[Unbound] Fix logging, fixes #585

[Rspamd] Fix permissions of controller password file
[Unbound] Enable unbound-control
master
André 2018-09-30 14:43:18 +02:00
parent b008211f52
commit cdca603ff5
4 changed files with 16 additions and 2 deletions

View File

@ -3,6 +3,7 @@
chown -R _rspamd:_rspamd /var/lib/rspamd chown -R _rspamd:_rspamd /var/lib/rspamd
chmod 755 /var/lib/rspamd chmod 755 /var/lib/rspamd
[[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Placeholder' > /etc/rspamd/override.d/worker-controller-password.inc [[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Placeholder' > /etc/rspamd/override.d/worker-controller-password.inc
chown _rspamd:_rspamd /etc/rspamd/override.d/worker-controller-password.inc
[[ ! -f /etc/rspamd/custom/sa-rules-heinlein ]] && echo '# to be auto-filled by dovecot-mailcow' > /etc/rspamd/custom/sa-rules-heinlein [[ ! -f /etc/rspamd/custom/sa-rules-heinlein ]] && echo '# to be auto-filled by dovecot-mailcow' > /etc/rspamd/custom/sa-rules-heinlein
exec "$@" exec "$@"

View File

@ -10,6 +10,7 @@ RUN apk add --update --no-cache \
drill \ drill \
&& curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \ && curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
&& chown root:unbound /etc/unbound \ && chown root:unbound /etc/unbound \
&& adduser unbound tty \
&& chmod 775 /etc/unbound && chmod 775 /etc/unbound
EXPOSE 53/udp 53/tcp EXPOSE 53/udp 53/tcp

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
echo "Setting console permissions..."
chown root:tty /dev/console
chmod g+rw /dev/console
echo "Receiving anchor key..." echo "Receiving anchor key..."
/usr/sbin/unbound-anchor -a /etc/unbound/trusted-key.key /usr/sbin/unbound-anchor -a /etc/unbound/trusted-key.key
echo "Receiving root hints..." echo "Receiving root hints..."
curl -#o /etc/unbound/root.hints https://www.internic.net/domain/named.cache curl -#o /etc/unbound/root.hints https://www.internic.net/domain/named.cache
/usr/sbin/unbound-control-setup
exec "$@" exec "$@"

View File

@ -2,7 +2,7 @@ server:
verbosity: 1 verbosity: 1
interface: 0.0.0.0 interface: 0.0.0.0
interface: ::0 interface: ::0
logfile: /dev/stdout logfile: /dev/console
do-ip4: yes do-ip4: yes
do-ip6: yes do-ip6: yes
do-udp: yes do-udp: yes
@ -27,3 +27,12 @@ server:
hide-version: yes hide-version: yes
max-udp-size: 4096 max-udp-size: 4096
msg-buffer-size: 65552 msg-buffer-size: 65552
remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 8953
server-key-file: "/etc/unbound/unbound_server.key"
server-cert-file: "/etc/unbound/unbound_server.pem"
control-key-file: "/etc/unbound/unbound_control.key"
control-cert-file: "/etc/unbound/unbound_control.pem"