Skip to content

Commit cc2ba72

Browse files
fix: Avoid duplicate entries on /etc/postfix/header_checks on container restart
What PR #129 was trying to fix.
1 parent c1546f4 commit cc2ba72

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ fi
5454
# Bind to both IPv4 and IPv4
5555
add_config_value "inet_protocols" "all"
5656

57+
# Clear existing header_checks to avoid duplication on restart
58+
> /etc/postfix/header_checks
59+
5760
# Create sasl_passwd file with auth credentials
5861
if [ ! -f /etc/postfix/sasl_passwd -a ! -z "${SMTP_USERNAME}" ]; then
5962
grep -q "${SMTP_SERVER}" /etc/postfix/sasl_passwd > /dev/null 2>&1

0 commit comments

Comments
 (0)