-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SASL rimap auth without combine #1608
Comments
Regarding a smart way to alter this, take a look at: https://github.com/tomav/docker-mailserver/wiki/FAQ-and-Tips#howto-adjust-settings-with-the-user-patchessh-script Putting something like this in
|
Ok, the sed command seems to work, but my user-patches.sh doesn't get exectued. root@mail:/# ls -lah /tmp/docker-mailserver/user-patches.sh
-rwxr-xr-x 1 root root 103 Sep 14 18:20 /tmp/docker-mailserver/user-patches.sh
root@mail:/# cat /tmp/docker-mailserver/user-patches.sh
#!/bin/bash
sed -i 's/rimap -r/rimap/' /etc/supervisor/conf.d/saslauth.conf 2>&1 >> /tmp/user-patches |
Did you restart the container? On container startup, you should see (2nd line in snippet below):
|
Wait a second, Kopano docker includes v6.2.0, and let me guess, there is no user-patches.sh in that version. Sry, my bad, didn't assue they used such an old release |
Is it possible, that user-patches.sh is executed after supervisord is launched? I can see the changes in my saslauth.conf after the container hast started and user-patches.sh were appied |
The script should be executed after supervisord is launched, but before all the individual services run. |
@erik-wramner I don't know If I understood your reply. Should the user-patches.sh be able to modify supervisord related configs or should one take a different approach? @aendeavor tagged this as a bug, so it actually should execute before supervisord? From my side I would replace the Docker start command with a script, which first executes the user-patches.sh (if exist) and then runs supervisord. And of course remove the user-patches.sh from wherever it gets called right now. |
@engelant I just read over it quickly and the response from @erik-wramner indicated a bug for me. If this is not the case, I will of course remove this label. |
Yes, that's the case. As @erik-wramner wrote, on container start, supervisord is executed, which then calls You can see this in the console log on container start. You probably have to set From my point of view, there is no race condition or something similar, which could cause the problem you describe. I would check all again and/or start from scratch. If that doesn't help, post your complete setup/config, to see if it is reproducible. |
@casperklein ok, but then it makes perfect sense, doesn't it? Main question here is: is it by design that user-patches.sh can't patch supervisord config or is it a bug? |
Yes, you are absolutely right! I was too focused on, when user-patches.sh is called and not what you are actually trying to achieve.
I guess when
I think, that's the way to go. Or you can build a custom docker image with the config file already patched to your needs. |
What happens if you append the following to your
I think that should work. |
At present the user patches script runs right before starting the daemons. That means all the other configuration is in place, so the user patches script can make final adjustments. If we move it and run it before starting supervisor we risk breaking existing scripts out there that rely on the startup script to do its work fist. If the solution by @casperklein above works that is better. |
@casperklein Yepp, that seems to do it, it's so simple. I guess It would be a good Idea to add that info to the wiki page, so that's what I did. |
With a single domain setup backed by a Samba4 AD i'm unable to auth trough kopano gateway (an IMAP server/Gateway).
Found out the reason for this behaviour is /etc/supervisor/conf.d/saslauth.conf, which has the
-r
flag set.I was unable to find a smart way to alter this via the existing mechanisms, so I would like to aks if it would fit the project to expose this flag to a boolean ENV like
SASLAUTHD_RIMAP_COMBINE=0
The text was updated successfully, but these errors were encountered: