Getting 'Certificate expired' when trying to send mail

SYSTEM INFORMATION
OS type and version Rocky Linux 9.4
Webmin version 2.111
Usermin version 2.010
Virtualmin version 7.10.0
Theme version 21.10

Being told certificate has expired when trying to send mail even though I have manually created a new cert and copied files to all the usual places (and restarted postfix and dovecot):

Screenshot 2024-08-09 at 03.59.18

Certs are set-up/copied as per this post: How to configure SSL for Dovecot/Postfix manually? - #18 by Brook

Where else would Virtualmin look for certs? Does anything else need to be restarted? The domain itself is showing the correct cert date, but trying to send mail seems to be fetching the cert that expired yesterday.

Any idea what might be going on?

Go to virtualmin and then search for ssl certificate setup and go there.

on that screen at the bottom it should have a button to use the ssl cert for other services.

In the screenshot above it doesn’t show that option as I have already used it so it doesn’t show after that.

also on that screen to the right it should list what services are using your current ssl cert. like below.

What does yours show for used by services?

You can also add ssl certs for different services manually using the terminal.

sudo virtualmin install-service-cert --domain yourdomain.com --service proftpd --add-global

The above command adds the cert for proftpd but you can change that to postfix/dovecot or whatever service you want to use the cert.

Hope this helps.

Hi, thanks for the post but this is not what I am looking for. We need to be able to set up the certs via a script (as per this post: How to configure SSL for Dovecot/Postfix manually? - #18 by Brook) as we use HAProxy to handle https.

Having said that… it is working fine now. Wonder why it didn’t take effect immediately? :confused: