From 9652257a80f65965fb1adb5857ccfe764cc46fc7 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Wed, 19 Jun 2024 02:53:59 -0400 Subject: 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 --- Dockerfile | 9 +++++++++ docker-compose.yml | 2 ++ 2 files changed, 11 insertions(+) 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: -- cgit v1.2.3