odoo_smtp can't reach external SMTP servers
nqb opened this issue · 2 comments
Hello,
I suppose odoo_smtp
is a SMTP relay used by odoo
container to send emails.
If variable mailname
is defined in inventory, docker-compose.yml
file for prod instance contain a smtp
container attached to one network email_proxy
. But this network is an internal network and doesn't allow smtp
container to reach external SMTP servers.
I suppose smtp
container should be attached to two networks:
- email_proxy
- email_public
My bad, the endif was not in the correct position (I had an extra if in order to be able to allow to define networks as internal or external).
Fixed with 5645ea5
Indeed, the idea is to block non authorized external communication (with whitelists, therefore you need email container which is able to discuss on Internet).
You can have a look here:
Thank you for reporting !
Thanks for the fix and the diagram (really helpful !)