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 --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docker-compose.yml') 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 From 335b9f49532ce012b6da7dc404aff1dee55bfa21 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 5 Jul 2024 06:04:49 -0400 Subject: opendkim: Configure signing parameters We use a hard-coded key selector of "default" and store keyfiles in the dkim volume. `Domain` indicates the mail sources for which mail should be signed rather than verified. Because we are using ENV_VIRTUAL_DOMAINS in this context, we now require the variable to be comma separated (no whitespace), as that is what this file requires. All previous usages of ENV_VIRTUAL_DOMAINS are compatible with comma separation. Signed-off-by: Malfurious --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index 0c741b6..69ac500 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: # CONFIGURE ME! # The FQDN this mail server identifies itself as HOSTNAME: "YOUR-DOMAIN.example" - # All domain names this server accepts mail for (space separated) + # All domain names this server accepts mail for (comma separated) VIRTUAL_DOMAINS: "YOUR-DOMAIN.example" restart: "always" -- cgit v1.2.3 From 5d6a5e19976923daccf0464f797b44b6266e6941 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 5 Jul 2024 05:53:38 -0400 Subject: opendkim: Start milter service Signed-off-by: Malfurious --- docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index 69ac500..0efa133 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -56,6 +56,15 @@ services: - "mlmmj:/var/spool/mlmmj" command: ["bash", "-c", "/usr/bin/mlmmj-maintd -d /var/spool/mlmmj && sleep infinity"] + opendkim: + image: "mailnode" + pull_policy: "never" + + restart: "always" + volumes: + - "dkim:/opendkim" + command: ["/usr/sbin/opendkim", "-f"] + volumes: certs: external: true -- cgit v1.2.3