summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-06-19 02:53:59 -0400
committerMalfurious <m@lfurio.us>2024-07-09 15:50:39 -0400
commit9652257a80f65965fb1adb5857ccfe764cc46fc7 (patch)
treef70625da354932adea5cf803ee39b31898d20d11 /Dockerfile
parent02da95230612c5ae7a31587b31eca7a8c9a05ce0 (diff)
downloadmailnode-9652257a80f65965fb1adb5857ccfe764cc46fc7.tar.gz
mailnode-9652257a80f65965fb1adb5857ccfe764cc46fc7.zip
opendkim: Setup package and data volume
The postfix user is added to the opendkim group so that the MTA can eventually interact with the filter over its socket file. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index f79830a..e7ca4b9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,14 @@ RUN useradd \
--skel /dev/null --create-home \
mlmmj
+RUN useradd \
+ --uid 2003 \
+ --shell /usr/sbin/nologin \
+ --home-dir /run/opendkim \
+ opendkim
+
+RUN usermod -aG opendkim postfix
+
# Install packages
RUN apt update \
&& apt full-upgrade --yes \
@@ -32,6 +40,7 @@ RUN apt update \
dovecot-core \
dovecot-imapd \
mlmmj \
+ opendkim \
postfix \
postfix-pcre \
sudo \