Attempt at ARC/DKIM signing for mailman

This commit is contained in:
3wc 2023-09-30 21:55:19 +01:00
parent 014d4456f8
commit 496fd6d5ea
6 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,5 @@
export CERTDUMPER_POST_VERSION=v1
export POSTFIX_OVERRIDE_VERSION=v15
export SENDER_LOGIN_VERSIONS=v2
export ARC_OVERRIDE_VERSION=v8
export DKIM_IP_MAP_OVERRIDE_VERSION=v2

View File

@ -16,6 +16,14 @@ services:
configs:
- source: postfix_override
target: /overrides/postfix.cf
antispam:
configs:
- source: arc_conf_override
target: /overrides/arc.conf
- source: dkim_ip_map_override
target: /overrides/dkim_ip.map
volumes:
- "rspam_overrides:/etc/rspamd/override.d"
networks:
shared_mailman_network:
@ -27,9 +35,17 @@ volumes:
shared-mailman-core:
external: true
name: ${MAILMAN_CORE_VOLUME}
rspam_overrides:
configs:
postfix_override:
name: ${STACK_NAME}_postfix_overrides_${POSTFIX_OVERRIDE_VERSION}
file: postfix.cf.tmpl
file: mailman-postfix.cf.tmpl
template_driver: golang
arc_conf_override:
name: ${STACK_NAME}_arc_conf_override_${ARC_OVERRIDE_VERSION}
file: mailman-arc.conf
dkim_ip_map_override:
name: ${STACK_NAME}_dkim_ip_map_${DKIM_IP_MAP_OVERRIDE_VERSION}
file: mailman-dkim_ip.map.tmpl
template_driver: golang

2
logging.inc Normal file
View File

@ -0,0 +1,2 @@
type=console
debug_modules=dkim

7
mailman-arc.conf Normal file
View File

@ -0,0 +1,7 @@
sign_networks = "/overrides/dkim_ip.map";
path = "/dkim/$domain.$selector.key";
use_domain = "header";
#use_vault = false;
#try_fallback = true;
#selector_map = "/overrides/dkim_selectors.map";
#selector = "dkim";

1
mailman-dkim_ip.map.tmpl Normal file
View File

@ -0,0 +1 @@
{{ env "RELAYNETS" }}