summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: