# Let's Encrypt SSL error generating one for MX

**URL:** <https://forum.virtualmin.com/t/lets-encrypt-ssl-error-generating-one-for-mx/113292>\
**Category:** Help! (Home for newbies)\
**Created:** [December 14, 2021, 4:52am UTC](https://forum.virtualmin.com/t/lets-encrypt-ssl-error-generating-one-for-mx/113292 "2021-12-14T04:52:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Server](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/daniel_server/32/2695_2.png) [@Daniel\_Server](https://forum.virtualmin.com/u/Daniel_Server)\
**Post date:** [December 14, 2021, 4:52am UTC](https://forum.virtualmin.com/t/lets-encrypt-ssl-error-generating-one-for-mx/113292/1 "2021-12-14T04:52:51Z")

</div>

Hello folks,  
I was trying to make my own email server in order to send email like [test@site.com](mailto:test@site.com)  
I currently own only on record A with is @ [mysite.com](http://mysite.com).

my old Let’s Encrypt SSL was on: [mysite.com](http://mysite.com) and [www.mysite.com](http://www.mysite.com). but now I want [mail.mysite.com](http://mail.mysite.com).  
using virtualmin on the let’s encrypt tab I generate an ssl for: [mysite.com](http://mysite.com) and [www.mysite.com](http://www.mysite.com) [mail.mysite.com](http://mail.mysite.com).  
And I got this error note that I did it only once so I’m not temporally blocked my Let’s Encrypt.

* * *

Requesting a certificate for [mysite.com](http://mysite.com), [www.mysite.com](http://www.mysite.com), [mail.mysite.com](http://mail.mysite.com) from Let’s Encrypt …  
… request failed : Web-based validation failed :

```auto
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for mail.mysite.com
Using the webroot path /home/mysite/public_html for all unmatched domains.
Waiting for verification...
Challenge failed for domain mail.mysite.com
http-01 challenge for mail.mysite.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: mail.mysite.com
   Type: dns
   Detail: DNS problem: NXDOMAIN looking up A for mail.mysite.com
   - check that a DNS record exists for this domain

```

DNS-based validation failed :

```auto
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for mail.mysite.com
Running manual-auth-hook command: /etc/webmin/webmin/letsencrypt-dns.pl
Waiting for verification...
Challenge failed for domain mail.mysite.com
dns-01 challenge for mail.mysite.com
Cleaning up challenges
Running manual-cleanup-hook command: /etc/webmin/webmin/letsencrypt-cleanup.pl
Some challenges have failed.
IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: mail.mysite.com
   Type: dns
   Detail: DNS problem: NXDOMAIN looking up TXT for
   _acme-challenge.mail.mysite.com - check that a DNS record
   exists for this domain

```

How could I fix this error?  
Thanks

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [December 14, 2021, 6:30am UTC](https://forum.virtualmin.com/t/lets-encrypt-ssl-error-generating-one-for-mx/113292/2 "2021-12-14T06:30:48Z")

</div>

> [@Daniel\_Server](#):
>
> ```auto
> Domain: mail.mysite.com
> Type: dns
> Detail: DNS problem: NXDOMAIN looking up A for mail.mysite.com
> - check that a DNS record exists for this domain
> 
> ```

I don’t know how that error could be more clear?

You don’t have an A record for a name you tried to issue a certificate for. If you don’t want mail.domain.tld to be part of the certificate don’t include it. It obviously cannot be part of the certificate if you haven’t made a record for it in your DNS server (if you host DNS in Virtualmin, it knows what records exist, if you host DNS elsewhere, you need to manage that yourself).

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [December 22, 2021, 6:30am UTC](https://forum.virtualmin.com/t/lets-encrypt-ssl-error-generating-one-for-mx/113292/3 "2021-12-22T06:30:53Z")

</div>

Closed on December 22, 2021, 6:30am UTC

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