Update run.sh
Updated header tag variable. Configured to only set the header tag if variable is set.
This commit is contained in:
parent
b8e5444956
commit
630b283eea
11
run.sh
11
run.sh
@ -47,14 +47,11 @@ if [ ! -f /etc/postfix/sasl_passwd ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#Set header tag
|
#Set header tag
|
||||||
postconf -e "header_checks = regexp:/etc/postfix/header_tag"
|
if [ -z "${SMTP_HEADER_TAG}" ]; then
|
||||||
if [ -z "${HEADER_TAG}" ]; then
|
postconf -e "header_checks = regexp:/etc/postfix/header_tag"
|
||||||
TAG="$RANDOM"
|
echo -e "/^MIME-Version:/i PREPEND RelayTag: $SMTP_HEADER_TAG\n/^Content-Transfer-Encoding:/i PREPEND RelayTag: $SMTP_HEADER_TAG" > /etc/postfix/header_tag
|
||||||
else
|
echo "******** Header tag is $SMTP_HEADER_TAG *********"
|
||||||
TAG="${HEADER_TAG}"
|
|
||||||
fi
|
fi
|
||||||
echo -e "/^MIME-Version:/i PREPEND RelayTag: $TAG\n/^Content-Transfer-Encoding:/i PREPEND RelayTag: $TAG" > /etc/postfix/header_tag
|
|
||||||
echo "******** Header tag is $TAG *********"
|
|
||||||
|
|
||||||
#Start services
|
#Start services
|
||||||
supervisord
|
supervisord
|
||||||
|
Loading…
x
Reference in New Issue
Block a user