mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
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:
parent
aba8fc2816
commit
c081adf0b0
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user