DMS update

This commit is contained in:
2025-12-03 18:21:22 -06:00
parent a89d53ce26
commit add0ca2e75
7 changed files with 92 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -euo pipefail
CFG_ROOT="/tmp/docker-mailserver"
SRC_DIR="$CFG_ROOT/postfix"
DST_DIR="/etc/postfix"
# Dateien nach /etc/postfix kopieren (oder aktualisieren)
# install -D -m 0644 "$SRC_DIR/transport" "$DST_DIR/transport"
# install -D -m 0600 "$SRC_DIR/sasl_passwd" "$DST_DIR/sasl_passwd"
install -D -m 0644 "$SRC_DIR/header_checks" "$DST_DIR/header_checks"
install -D -m 0644 "$SRC_DIR/smtp_header_checks" "$DST_DIR/maps/sender_header_filter.pcre"
# Maps bauen
# postmap "$DST_DIR/transport"
# postmap "$DST_DIR/sasl_passwd"
# Rechte auf die .db-Helferdatei
# chmod 600 "$DST_DIR/sasl_passwd.db" || true
# rm -f /etc/dovecot/conf.d/95-sieve-redirect.conf
# Postfix neu laden (nachdem docker-mailserver seine eigene Konfig geladen hat)
postfix reload || true