Howto add extra networks to mynetworks #2483
-
I use PERMIT_DOCKER=container and so mynetworks is filled dynamically with the container IP. How can I add an extra network to the mynetworks and also keep the PERMIT_DOCKER=container working. |
Beta Was this translation helpful? Give feedback.
Answered by
casperklein
Mar 14, 2022
Replies: 1 comment
-
Put something like this in your user-patches.sh script should work: CUSTOM_NETWORK="x.x.x.x/xx"
postconf -e "$(postconf | grep '^mynetworks =') $CUSTOM_NETWORK"
echo "$CUSTOM_NETWORK" >> /etc/opendmarc/ignore.hosts
echo "$CUSTOM_NETWORK" >> /etc/opendkim/TrustedHosts |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
georglauterbach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put something like this in your user-patches.sh script should work: