Mail certificate renewed, but still serving old one?

NethServer Version: 8.latest
Module: Email

Pretty much what the subject says–my NS8 node certificate appears to have successfully renewed a month ago:

However, my mail server is still serving the old cert, which expired earlier today. Kind a problem that in over a month, it hasn’t reloaded the cert. How can I fix this?

Hi Dan, you’d try the following:

  • make sure core and app are at latest version
  • restart the app
  • check the app log for any get-certificate error
1 Like

This fixed the immediate problem, all right. The question remains why mail was still using the old cert, a month after the new one had been issued.

A possible cause could be an old Mail version that wasn’t aware of the certificate change event or had authorization issues with the get-certificate action. Did you update Mail after the cert renewal event? What versions were involved? The logs should say it.

If you go back in logs to the certificate change date you might find some clues.

Otherwise, just wait February 16 to see what happens and save the relevant logs.

1 Like

It should be closer to January 16, as the cert would renew 30 days out.

Searching for “certificate” in the mail app logs with a window of 1 Nov - today gave no results. The mail app is currently version 1.7.4, but of course that doesn’t address what it was a month ago. I’d bet it was the same then, though–if it had upgraded in the interim, I’d expect the restart would have picked up the new cert.

Yes, correct.

Just to be sure, do the certificate names match the Mail name under Settings > General? Do you have any other certificate with the same name?

Yes. (as a side note, the unchangeable default of 10 items in a list is more than a little frustrating–that’s why scrolling exists).

No; the only other cert that mentions mail at all is for webmail.

Now, a previous update (maybe at 8.6?) changed how certificates were handled. It’s possible that I’d previously had a separate cert for mail., but I can’t say for sure, nor when that would have changed. But not too long after installing that update (which was automatic), I used the “delete obsolete certificates” to accomplish that task.

1 Like

Interesting :thinking: It looks like a UI bug, thank you for pointing it out. However, do not expect Mail server hostname to be a list selector, as it is actually a free text input field. Only its disabled state is wrong: after the dialog is loaded, it should become editable.

EDIT: I was wrong, the field is editable!

This may be a clue. I’d try to reproduce it, thanks!

I wasn’t talking about the mail server hostname, but other lists like the TLS certificates:

or Applications:

They’re chunked by default at 10 items/page, that default can’t be edited, and changes (e.g., selecting 25/page) don’t persist to the next time you browse to that list.

1 Like