Skip to content

Howto add extra networks to mynetworks #2483

Answered by casperklein
doets001 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by georglauterbach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants