Cannot enable SNI for Dovecot: SSL is not enabled for this domain

wattie

Verified User
Joined
May 31, 2008
Messages
1,206
Location
Bulgaria
I had a domain which had SSL access disabled. I enabled it, then gone and generated Letsencrypt certificate for it. Then this error occured:

Code:
Cannot enable SNI for Dovecot: SSL is not enabled for this domain

Clicking "Save" again produces the same error.

Here is part of the debug code:

Code:
...
-----END+CERTIFICATE-----%0D%0A&submit=Save
Plugin::addHooks: start
Command::doCommand(/CMD_SSL)
Domain <domain>  defaultdomain=yes usertype=1 multiple_ips=0 enable_ssl_sni=1
certValid(cert, 1) - begin
Running /usr/bin/openssl x509 -modulus < /home/tmp/cert_test.pLfC4V 2>&1

singleCertValid():: '/usr/bin/openssl x509 -modulus' returned 0:
Ssl::keyValid result (exec_ret=0):
writing RSA key
Modulus=...

...

-----END RSA PRIVATE KEY-----


Ssl::write_dovecot_sni: username=<user> domain=<domain>
Ssl::write_dovecot_sni: SSL is not enabled for this domain: <domain>
Dynamic(api=0, error=0):
        text='Certificate and Key Saved.'
        result='Cannot enable SNI for Dovecot: SSL is not enabled for this domain<br>
'
Command::doCommand(/CMD_SSL) : finished
Command::run: finished /CMD_SSL
timeout with null.  Sending 0 output.
 
Last edited:
Fount it...

There was "ssl=OFF" in /usr/local/directadmin/data/users/<user>/domains/<domain>.conf

It was shown as enabled in the web interface but disabled in this file. When I changed it to "ON" everything worked fine.
 
Back
Top