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

When deleting a domain, dovecot.conf isn't updated #905

Open
ruzakuku opened this issue Sep 26, 2024 · 7 comments
Open

When deleting a domain, dovecot.conf isn't updated #905

ruzakuku opened this issue Sep 26, 2024 · 7 comments

Comments

@ruzakuku
Copy link

After deleting a domain using Virtualmin, we saw that at the next server reboot Dovecot didn't start. Log files show that the old entries (certificate location) of the deleted domain weren't deleted in dovecot.conf.

We removed the old entries, dovecot started.

@iliajie
Copy link
Collaborator

iliajie commented Sep 26, 2024

Hello,

Could you share the records that you deleted in Dovecot?

@ruzakuku
Copy link
Author

Sure !

local_name domain.com {
ssl_cert = </home/domain/ssl.combined
ssl_key = </home/domain/ssl.key
}

domain is the considered domain name of course.
There were 2 removed domains, both lines had to be manually removed.

If it is useful, SSL is supplied by Let'sEncrypt certs.

@jcameron
Copy link
Collaborator

Does this happen consistently if you create and then delete a domain?

@ruzakuku
Copy link
Author

Does this happen consistently if you create and then delete a domain?

Well, I did it again with a new domain, created and deleted, this time all was going normally, lines were added then removed.

The problem happened on 2 domains that were active a few years, then I put them inactive and finally deleted them. I assume the problem happened when I deleted them, then I rebooted some days later after a kernel upgrade and saw that Dovecot couldn't start. Earlier reboots (before deleting the domains) were fine.

@jcameron
Copy link
Collaborator

Were the records you removed from dovecot.conf the same format as the ones that get added if you create a new test domain?

@ruzakuku
Copy link
Author

Were the records you removed from dovecot.conf the same format as the ones that get added if you create a new test domain?

Yes.

@jcameron
Copy link
Collaborator

Hmmm .... it's hard to debug this further unless the problem happens repeatably.

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

No branches or pull requests

3 participants