mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-16 12:24:50 +02:00
Rootless Podman security update (#2393)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
ede2b2394a
commit
4c3af32692
5 changed files with 81 additions and 7 deletions
|
@ -1154,6 +1154,11 @@ function _setup_docker_permit
|
|||
done < <(ip -o -4 addr show type veth | grep -E -o '[0-9\.]+/[0-9]+')
|
||||
|
||||
case "${PERMIT_DOCKER}" in
|
||||
"none" )
|
||||
_notify 'inf' "Clearing Postfix's 'mynetworks'"
|
||||
postconf -e "mynetworks ="
|
||||
;;
|
||||
|
||||
"host" )
|
||||
_notify 'inf' "Adding ${CONTAINER_NETWORK}/16 to my networks"
|
||||
postconf -e "$(postconf | grep '^mynetworks =') ${CONTAINER_NETWORK}/16"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue