Today I was trying to fix some issues I had with my YNH which is in a VM behind a caddy firewall in the main machine.
I don’t need YNH to handle certificates for https since caddy is doing it, but I need it for IMAP and SMPT config. The certificate wasn’t accessible so far, so I was getting a warning to accept an invalid certificate when adding an account on Thunderbird, also Thunderbird couldn’t fetch the autoconfig because caddy firewall wasn’t properly redirected.
I wanted to make the whole thing more user friendly and to solve these certificate+autoconfig issues so I setup forwarding in caddy for the url to the certificate and autoconfig, which I think should be:
- for the certificate:
- and for the mail autoconfig:
Since that, thunderbird is asking me to add a security exception every time I touch anything, and if I accept the exception it doesn’t even fetch new mails. It says the certificate I’m using is for another domain, and if I examine the certificate, it points to yunohost.mydomain.tld (which is my main domain, where is yunohost SSO), but my email address is in @mydomain.tld. So I don’t really know how to solve this issue.
Basically emails cannot be checked with thunderbird now, so I wanted to go back and removed the caddy config I had added, but doing that doesn’t even allow me to roll back to the previous state.
What I don’t understand, is that K9 mail can still fetch mail and doesn’t display errors.