postfix -> mailu goes through external_services network #222

Open
opened 2024-10-29 12:15:51 +00:00 by reynir · 1 comment
Owner

When our postfix (smtp.data.coop) tries to connect to mailu (mail.data.coop) it connects to our external ip as expected (according to its logs). However, mailu sees the sender IP being the gateway of our external_services network. This breaks SPF! And I don't understand why.

When our postfix (smtp.data.coop) tries to connect to mailu (mail.data.coop) it connects to our external ip as expected (according to its logs). However, mailu sees the sender IP being the **gateway** of our `external_services` network. This breaks SPF! And I don't understand why.
Owner

Hacky fix: Add a static subnet to the external_services network and add that IP range to the SPF record.

- name: Set up external services network
docker_network:
name: external_services

Hacky fix: Add a static subnet to the `external_services` network and add that IP range to the SPF record. https://git.data.coop/data.coop/ansible/src/commit/fd2d2e025f95f8a914634e9323461d47f30fe369/roles/docker/tasks/services.yml#L3-L5
Sign in to join this conversation.
No description provided.