rspamd: Update to version 3.2

We also return generated DKIM keys to standard output when the
`rspamd-dkim-generate` service is used.
This commit is contained in:
Alex Palaistras 2022-04-17 12:52:23 +01:00
parent aba8fc2816
commit c081adf0b0
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FROM docker.io/debian:bullseye-slim FROM docker.io/debian:bullseye-slim
ARG VERSION=3.1 ARG VERSION=3.2
RUN apt-get update -y && apt-get install -y --no-install-recommends \ RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates curl gnupg ca-certificates curl gnupg

View File

@ -6,10 +6,11 @@ After=rspamd.service
[Service] [Service]
Type=oneshot Type=oneshot
SyslogIdentifier=%N SyslogIdentifier=%N
StandardOutput=tty
ExecStartPre=/bin/podman exec rspamd install -d /var/lib/rspamd/dkim ExecStartPre=/bin/podman exec rspamd install -d /var/lib/rspamd/dkim
ExecStart=/bin/podman exec rspamd openssl genrsa -out /var/lib/rspamd/dkim/%i.dkim.key 1024 ExecStart=/bin/podman exec rspamd openssl genrsa -out /var/lib/rspamd/dkim/%i.dkim.key 1024
ExecStartPost=/bin/podman exec rspamd chmod 644 /var/lib/rspamd/dkim/%i.dkim.key ExecStartPost=/bin/podman exec rspamd chmod 644 /var/lib/rspamd/dkim/%i.dkim.key
ExecStartPost=/bin/podman exec rspamd sh -c 'echo "Public DKIM key:"; openssl rsa -in /var/lib/rspamd/dkim/%i.dkim.key -pubout -outform der 2> /dev/null | openssl base64 -A' ExecStartPost=/bin/podman exec rspamd sh -c 'echo "Public DKIM key:"; openssl rsa -in /var/lib/rspamd/dkim/%i.dkim.key -pubout -outform der 2> /dev/null | openssl base64 -A; echo'
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target