Every time (AutoSSL, every 3 month) my provider renews the certificate of my mail domain (mail.keukenmeester.eu), K-9 mail does not accept the renewed certificate and stops receiving (and sending) mails on all email accounts of this domain without notice. When I then accept the new certificate on the account of the domain for the incoming and for the outgoing mail, there is no problems until 3 months later. The same issue occurs on the other domain I use of the same provider (Neostrada.nl). There are no issues when using Thunderbird with Linux or Windows for these domains.
Used device: OnePlus Nord 3 5G
Used software level: Android 14 security update 5 june 2024
Used K-9 mail version: 6.804
Question1: what should I do to avoid this issue?
Question2: how can I be noticed for certificate errors so Iām aware mail is not coming in?
Do you have a hosting contract with them or do you have a VPS? In the latter case, you can check in cPanel whether you can configure your own certificate or if there is an alternate name for your MX that uses a different certificate.
K-9 Mail should create an error notification when thereās a certificate error. Make sure you allow āmiscellaneousā notifications for all accounts.
The certificate that mail.keukenmeester.eu returns for IMAP on port 143 and 993, for POP3 on port 110 and 995, and for SMTP on port 587 and 465 looks good to me. K-9 Mail shouldnāt report a certificate error, and didnāt in my tests.
Sorry for the misunderstanding but I already accepted the renewed certificate. When this is a new issue for you/the forum, I will return in this topic or (when closed) open a new one before accepting. But this will take three months.
Kind regards,
Henk Keukenmeester
Why change the certificate when it works OK with Thunderbird on Linux and Windows and also in an older version of Android (I have to look after my old phone to find out which version) for over at least five years?
Met vriendelijke groet/Kind regards,
Henk Keukenmeester
One thing that could lead to the certificate not being regarded as valid is if the certificate authority that signed the certificate was disabled in Androidās settings. Make sure āInternet Security Research Groupā (ISRG Root X1) is enabled under Security ā More security settings ā Encryption & credentials ā Trusted credentials (or just search for ātrusted credentialsā if your Android version puts it in a slightly different place).
You donāt have to do nothing. You seemed annoyed by the short validity, so I pointed out some ways to work around with certificates valid a bit longer. If you are happy with the three month, donāt change it (btw: letās encrypt also limits the certificate validity to three month).
Wrt @ckettiās hunch regarding CAs, you can import the chain to Androidās certificate manager. Only do that, if you trust the CA. Beware of āthe connection may be monitored or unsafeā warnings triggered by the OS whenever the chain is invoked.
I think I know what Henk is talking about. When your server cert is provided by Letsencrypt, certificates are valid for 3 months, so they are renewed at that time.
When K9 receives a cert different from the one cached for a given server, it complains even if the new cert is valid.
I understand the possibility of MITM, and in fact, the current practice of creating a spoofing cert by firewalls, so I sympathize with that, but I guess the notification should be avoided if the public key stays the same, and that would be easier on the users.
I have the same certificate environment but this problem on a OnePlus Nord 3 5g with Oxygen 15 os. On my earlier smartphones I never had problems with K9 and certificates so I guess it has something to do with Oxygen. But I have no knowledge on how certificates work. As a bypass I now use on this smartphone the underlying server name to reach my mailserver without any issue.
Well, I do the same and Iām used to having to accept the new cert every renewal cycle, so there has to be some other contributing factor Iām not aware of⦠In fact, as I do starttls on outgoing. I have to do 2 different cert checks every renewal in every deviceā¦
Mine es a Moto, but a Samsung behaves the same. But it seems K9 does not have a cert store of its own, so may be the underlying OS has to do with it.
Hmm, Gemini says it has its own cert store, but no user GUI.
And that notification should happen any time the certificate changes. Thatās what I see⦠you are using IMAPs ?
I do receive a notification that links to the server settings dialog. Given that I just changed certs, I can reproduce this by going back to the old cert which is still valid.
I guess I found the core of the discrepancy.
Code at
checks first for defaultTrust, and then exceptions. It seems my ādefaultTrustā does not cover LetsEncrypt certs⦠(i.e. I have an old phone, but works!)
Well, no, Iāve just checked and ISRG Root X1 is there. Beats me.