How to add mail server to existing certificate

Is there a set of steps I (and others) can use to add a mail server to an existing certificate installed with certbot?

For example the certbot certificates command outputs this,

Found the following certs:
   Certificate Name:
     Expiry Date: 2020-04-12 21:20:31+00:00 (VALID: 86 days)
     Certificate Path: /etc/letsencrypt/live/
     Private Key Path: /etc/letsencrypt/live/

What command adds a mail server to the certificate? For example

1 Like

What command did you use to generate your certificate? You should see a section that has -d -d and there you can add -d to generate a new certificate that has all three names on it.


Hi Jillian the problem is that throws an error. Is there an alternate command I should be using?

Also I should note that I have an MX record for my mailserver but according to the error it seems to be looking for an A record.

$ sudo certbot certonly --standalone -d

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1):
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
Waiting for verification...
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.


1 Like

Mx record means you will receive email by that domain: so you should also have a record for, as sender obviously need to know where that domain is.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.