Skip to content

email configuration when using postfix on docker host #6822

Closed Answered by ahmgithubahm
ahmgithubahm asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, I think, instead of deleting this question, I'll leave the answer here, since I found it almost straight away.

My host's postfix config needed some changes too. Firstly, I needed:

inet_interfaces = all

instead of the default (on Debian 12 at least) of:

inet_interfaces = loopback-only

I also needed to add:

172.16.0.0/12

to the mynetworks line, since the SMTP connections from docker containers will be coming from that CIDR.

With these changes, sending a test mail from the server container worked. I then had to add the same 'extra_hosts' config to the 'scheduler', 'scheduled_worker' and 'adhoc_worker' container config, so that sending invitation and password reset emails worked too. I…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ahmgithubahm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ahmgithubahm
Comment options

@justinclift
Comment options

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