Custom Wildcard Certifiate not applied to email
-
@girish OK, I've just tried that (for the main domain), but I'm not seeing any change.
This is affecting both incoming SMTP (so is domain agnostic at that point), as well as IMAP (which I assume also uses STARTTLS or equivalent before using a specific domain login).
If it's helpful, I'm familiar enough with sysadmin to be able to access the docker container command line and such, to get more information/apply changes.
Edit: I also just tried cycling the mail service, in case the change hadn't applied yet.
Edit: I also just tried disabling email across all domains (which did disable the mail service, based on the SSL test), but as soon as I re-enabled it for the main domain, the same error occurred.
-
@Peter-Newman Looks like maybe there is some bug then, let me test and get back.
The mail container essentially uses the files under
/home/yellowtent/platformdata/addons/mail
. There are two files heretls_cert.pem
andtls_key.pem
. I guess these files wrong?For the moment, just to keep your setup working, you can do this:
- Copy the correct certificates into the above files
- Then
docker restart mail
. Don't use the Cloudron UI to restart mail container because that clearly has some bug of copying the incorrect certs.
Can you tell me if the workaround works? If possible, also please note what certs were there originally in that directory above.
-
@Peter-Newman said in Custom Wildcard Certifiate not applied to email:
I don't know if it would help to attach them, but they look like standard Lets Encrypt Authority X3 issued certs
Thanks, that's what I wanted to know.
-
@Peter-Newman I opened https://git.cloudron.io/cloudron/box/-/issues/724 . Hopefully, we can get this fixed in the coming release.
-
Great, I'm looking forward to it.
So you know, the old certificate got put back into place and I had to re-apply the manual change.
Do you know what circumstances cause the cert to be reevaluated? For example, adding applications? Or is it just something that will happen on a regular schedule? -
@Peter-Newman said in Custom Wildcard Certifiate not applied to email:
So you know, the old certificate got put back into place and I had to re-apply the manual change.
I will try to make a fix in the coming day or two and maybe you can apply the patch already before we release 5.5. I will keep this post updated.
-
@Peter-Newman Just to double check, you chose the custom certificate provider in Domains view correct? Are you able to drop me a mail in support@cloudron.io, so I can look into this further?
-
@girish Actually, I just double-checked and the update didn't install. I'd seen it was in the process of installing, then had finished, so had assumed I was on 5.5, but I'm still using 5.4 . I've retriggered the update process and will test again if it finishes.
Edit: Hmm, it ran and again failed, but I refreshed the page before clicking to get the logs, and the nightly scheduled update had started! The displayed message was something like "failed with signal null".
Edit: Ah, I was able to grab the log (and the log of cloudton-updater) and found the problem. A little while ago, I'd started installing a tool used by my hosting provider, without realizing it was going to trigger an apt update etc, which Cloudron specifically warns against. I broke out of it, but it seems I left dpkg with unconfigured packages. I've fixed that now, and am trying the update again.