summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--Dockerfile9
-rw-r--r--docker-compose.yml2
2 files changed, 11 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 \
diff --git a/docker-compose.yml b/docker-compose.yml
index 0aeda27..0c741b6 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,6 +18,7 @@ services:
- "mail:/var/mail"
- "postfix:/var/spool/postfix"
- "mlmmj:/var/spool/mlmmj"
+ - "dkim:/opendkim"
ports:
- "25:25"
- "465:465"
@@ -62,6 +63,7 @@ volumes:
mail:
postfix:
mlmmj:
+ dkim:
networks:
nginx-proxy-network: