• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Upon removal of domain that uses SSL on mail SNI, the conf file is not removed leading to Dovecot fatal error

Bitpalast

Plesk addicted!
Plesk Guru
User name: Peter Debik

TITLE

Upon removal of domain that uses SSL on mail SNI, the conf file is not removed leading to Dovecot fatal error

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Obsidian on CentOS 7.8, latest MU

PROBLEM DESCRIPTION

The customer has removed a domain from his subscription that was previously configured using an SSL certificate für the mail account for her domain. Normally a removal like that works, but in this case it did not remove the dovecot configuration file. Dovecot was now looking for the certificate file when it tried to reload, resulting in a failure and outage of Dovecot:

Jul 29 08:22:28 <servername> dovecot: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/14-plesk-sni-<domainname>.conf line 7: ssl_cert: Can't open file /usr/local/psa/var/certificates/scfIdUy7P: No such file or directory

It kind of reminds me of a still existing issue on Onyx where a very similar thing happens with web server configuration files after domain removal. Sometimes there configuration files that point to non-existent domains remain on disk so that the webserver cannot reload or restart, because some configurations are pointing to missing certificates. This has not occured on Obsidian so far, but now the same issue exists on Obsidian with the mail SNI certificates.

STEPS TO REPRODUCE

Cannot be reproduced reliably. It only occurs "sometimes" when a domain is removed.

ACTUAL RESULT

Dovecot configuration file of the domain is not removed.

EXPECTED RESULT

Dovecot configuration file of the domain is removed.

ANY ADDITIONAL INFORMATION

I have a suggestion here as the same issue occurs with web server configuration files: Upon removal or update of configurations, there should be a while...next loop after the process completes that checks whether the files are *really* removed and the certificate references are *really* correct before the system tries to restart or reload services. In that while...next loop add a delay of for example 1 second, then test again. If the test fails, make sure that files are really correct, then test again and so on ... Only continue with reloading/restarting services if the software has verified that the files are all good.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
From developers:

Cannot be reproduced – not a bug. Proposed changes to the configuration update procedure are impractical and fault-prone.
 
I am afraid that they are wrong with their assessment. It's very likely a race condition. I've seen the same issue with the web server configuration files for many years now on all servers. And after all, why is the Dovecot configuration file not removed when the domain is removed? How can that not be a bug?
 
From developer:

What you've proposed is a feature change, not a bug fix. The current assessment is that the proposed change is dangerous.

Regarding the issue you've described – without a way to reproduce it we will not be able to reliably fix it. So when you have steps to reproduce, please post them. A machine or machine snapshot where the issue reproduces would be fine too.
 
Back
Top