Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to enable tlsproxy #222

Open
envy opened this issue Jan 27, 2025 · 2 comments
Open

Make it possible to enable tlsproxy #222

envy opened this issue Jan 27, 2025 · 2 comments

Comments

@envy
Copy link

envy commented Jan 27, 2025

Hi,

I want to enable smtp_tls_connection_reuse[0] which requires the use of the tlsproxy from master.cf.

Currently, I don't see a way to enable tlsproxy from, e.g., an env var.

It would be great, if this could be added.

Thanks!

[0] https://www.postfix.org/postconf.5.html#smtp_tls_connection_reuse

@bokysan
Copy link
Owner

bokysan commented Jan 27, 2025

You are correct. There's no direct way to edit master.cf via environment variables. This is because in most of the cases, the file does not need to be changed and because editing via postconf is more complex.

However, there are two options how you can still do it with this image:

  1. mount master.cf file and supply your own copy, or
  2. Supply your own init script in /docker-init.db/ directory which will run the necessary postconf commands.

@bokysan
Copy link
Owner

bokysan commented Jan 27, 2025

If you would like to add this functionality, I suggest looking at how postconf is used to edit master.cf.

This image uses postconf internally to do manipulation of main.cf as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants