Closed masterjg closed 5 months ago
Fixed. IF you're using SMTP relay and NO RSPAMD you have to force-set header.
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
set -e
. $(dirname $0)/00-env
# Script to add DMARC "Allow" header if the email passes the DMARC policy check
HEADER_FILE="/etc/postfix/header_checks"
# Ensure the header checks file exists
if [ ! -f "$HEADER_FILE" ]; then
echo "/^From:/ PREPEND X-AnonAddy-Dmarc-Allow: Yes" > "$HEADER_FILE"
else
if ! grep -q "X-AnonAddy-Dmarc-Allow" "$HEADER_FILE"; then
echo "/^From:/ PREPEND X-AnonAddy-Dmarc-Allow: Yes" >> "$HEADER_FILE"
fi
fi
# Update Postfix configuration to include header checks
postconf -e "header_checks = regexp:$HEADER_FILE"
Mount this file to /etc/cont-init.d/16_add_dmarc_allow_header.sh
in container and that's it.
Support guidelines
I've found a bug and checked that ...
Description
I'm using SMTP relay to send all email. No DKIM, SPF, etc from AnonAddy are set in my DNS zone.
Initial email was sent without issue. Sending email to alias works as expected too.
However when replying to alias I get:
My SMTP relay is mailersend.com
DNS records were setup based on their requirements:
Logs: anonaddy_log.txt
Expected behaviour
Reply as alias works without any issues
Actual behaviour
Receiving error
Steps to reproduce
Setup anon addy without DKIM, RSPAMD, etc. and use SMTP relay
Docker info
Logs
Additional info
No response