-
-
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
Generate dhparam and dovecot cert on start #1220
Generate dhparam and dovecot cert on start #1220
Conversation
Signed-off-by: Felix Bartels <felix@host-consultants.de>
Hi,
If I copy from /var/mail-state/lib-shared/dhparams.pem to /etc/dovecot/dh.pem (and /etc/postfix/dhparams.pem) it stays up:
Removing the
|
I'm having the same problem after an update today. |
I too am facing this, starting today. The "fix" I've implemented is to add a couple lines to
Then on container restart, dovecot is again able to launch and I again have SMTP service. |
2nd that, today dovecot wasn't working anymore (server reboot and container update) @massada's solution works, just
|
Hopefully #1226 will fix this, sorry that we didn't catch it before release. |
All good with the latest package. Thanks @erik-wramner |
I still have problems here with a running
I tried @roens approach with my
At least postfix is not complaining about not finding
|
Ah, this worked
cp /var/mail-state/lib-shared/dhparams.pem /etc/dovecot/dh.pem
cp /var/mail-state/lib-shared/dhparams.pem /etc/postfix/dhparams.pem
/etc/init.d/dovecot restart
|
Hm, @swiesend you shouldn't need to copy the files manually, the startup script should do that. If this was a one-off and nobody else complains I'll leave it at that. If you need to repeat the procedure please log an issue so that we can fix it permanently. Again, sorry that this got past the tests. |
I see this same warning message for each incoming mail:
I haven't tried the above posted workaround, but as you said, recreating the docker container would remove the fix anyways, so that's not a proper solution I guess! Also please know that the server seems to be running without issues, sending and receiving mails as it should apart from that warn message! |
@sischnei please don't resurrect an old PR, log a new issue instead and don't forget to fill in all the relevant parts of the template. |
Moved dhparam generation and dovecot mkcert from Dockerfile to start-mailserver.sh.