Ensure the Docker network (172.19.0.0/16 in this case) is included in the mynetworks setting. If it’s missing, add it.
Edit the /etc/postfix/main.cf file if needed:
Update the mynetworks line to include the Docker network:
mynetworks = 127.0.0.0/8 [::1]/128 172.19.0.0/16
maybe a new environment var for this is needed