docker-mailman icon indicating copy to clipboard operation
docker-mailman copied to clipboard

setting mailman.cfg via /opt/mailman/core/mailman-extra.cfg failed

Open y0va opened this issue 7 years ago • 6 comments

For exchanging the standard mta config from exim to postfix, the proposed way in the readme doesn't work for me. If I create a file /opt/mailman/core/mailman-extra.cfg with the postfix configuration, it doesn't show up in the mailman conf after restarting the container.

Using /opt/mailman/mailman.cfgas proposed here, didn't work neither. The only way I was successful in including the postfix config is to link a file as volume into the docker, and set MAILMAN_CONFIG_FILE accordingly.

y0va avatar Apr 07 '18 17:04 y0va

https://github.com/maxking/docker-mailman/blob/master/core/docker-entrypoint.sh#L152 It should be added to the configuration that is used by Mailman, it is appended to the config generated at runtime.

maxking avatar Apr 07 '18 19:04 maxking

The 2nd part is wrong, thanks for pointing it out. I will update it's documentation. /opt/mailman/core/mailman-extra.cfg is the only one that should be added to config.

maxking avatar Apr 07 '18 20:04 maxking

Docs is correct in one place, the one in core/Readme.md isn't.

maxking avatar Apr 07 '18 20:04 maxking

I'd need more details about why it doesn't work if you place configs at /opt/mailman/core/mailman-extra.cfg.

Can you please share the output of docker logs mailman-core after you started/re-started the container?

maxking avatar Apr 07 '18 23:04 maxking

Thank you for your help, it works for me now. I was a bit puzzled by your usage of host directories in the docs. For me it would be more easy if you would use relative paths from the docker-compose directory or the directory structure from within the docker containers, which we see from the logs.

For me it looks eg:

root@strix /data/domains/mailman.ecobytes.net # docker-compose logs mailman-core | grep mailman-extra.cfg
mailman-core    | Found configuration file at /opt/mailman/mailman-extra.cfg

y0va avatar Apr 08 '18 17:04 y0va

I guess that makes sense, I will update the docs to reflect the same.

maxking avatar Apr 09 '18 00:04 maxking

This issue has not been updated for more than 1year

github-actions[bot] avatar Nov 08 '22 22:11 github-actions[bot]