Skip to content
Snippets Groups Projects
Commit a236a767 authored by David Beniamine's avatar David Beniamine
Browse files

Customizable trusted hosts for opendkim

parent ca070731
Branches
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ services:
MY_NETWORKS:
ROOT_ALIAS:
MY_DESTINATION:
TRUSTED_HOSTS:
pgsql:
......
......@@ -17,12 +17,14 @@ EOF
mkdir -p /etc/opendkim
# Add docker trusted hosts
echo "sympa" >> /etc/opendkim/TrustedHosts
echo "localhost" >> /etc/opendkim/TrustedHosts
echo "127.0.0.1" >> /etc/opendkim/TrustedHosts
# Give some time to sympa to be up and running
sleep 10
dig +short sympa >> /etc/opendkim/TrustedHosts
for domain in $TRUSTED_HOSTS; do
echo $domain >> /etc/opendkim/TrustedHosts
dig +short $domain >> /etc/opendkim/TrustedHosts
done
for domain in $MAILNAME $POSTFIX_VIRTUAL_DOMAINS; do
keydir="/etc/dkimkeys/$domain"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment