How to Disable Lets Encrypt Renewal emails

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.4
Webmin version 2.111
Usermin version 2.010
Virtualmin version 7.10.0
Theme version 21.10
Package updates 92 package updates are available

background

When a SSL certificate is renewed the domain owner get an email

the question

  • How can i turn this email notification off per domain?
  • How can i turn this email notification off globally?

Thanks

Hello,

Run the following command to update the email associated with Certbot to an empty value:

certbot update_account --email ""

When done, check the account information by running:

certbot show_account
cd /etc/letsencrypt/renewal

List the files in this directory. Each config file corresponds to a domain for which Certbot has a certificate.

Edit a file and look for the email field in it. If none exists, add one under [renewalparams] section. It should look something like this:

email = "your-email@example.com"

@Jamie, do we support --no-eff-email flag yet when running renewals?

Many thanks for the information and I will go over it carefully.

Can this be made an option virtualmin?

  • Also settable in the server template?

Many people find these emails annoying.:grinning:

Or if you use usermin to it’s capacity you never see them, assuming you use an email address that virtualmin/webmin/usermin manages as you can just remove them in those configurations

No, but is the email in question coming from Virtualmin, or from Let’s Encrypt?

Yes, email notifications related to Let’s Encrypt certificates are sent by Let’s Encrypt.

But the email in the original post was sent by Virtualmin, not the Let’s Encrypt service…

  • To clarify the email seems to be sent from my Webmin system email address
    webmin@server.example.com to my domain owners account owner@example.com
  • I had a quick look but could not find the text strings from the email message in webmin or virtualmin, but I could of missed them. Is this an email built by virtualmin/webmin from the certbot response?

I can PM you the headers of the email if needed.

Yes, that’s the specific case.

However, we discussed Let’s Encrypt and certbot configuration. Let’s Encrypt sends emails as well. Those were in question, right?

From this GitHub discussion:

@iliajie Are these options for the forwarding option and can you just clarify the options for me please

  • Disabled = obvious
  • System Default Admin Email =
  • Virtual Server Email Address =
  • Disabled: Tells Let’s Encrypt not to send any notifications for any accounts.

  • System Default Admin Email: Configures certbot to instruct Let’s Encrypt to send notifications for all domains to a unified email address, such as webmin-system@server.com.

  • Virtual Server Email Address: Configures certbot to instruct Let’s Encrypt to send notifications to the email address associated with each domain specifically, like user@example.com.

However, considering this now, it should actually be a dropdown with four options not three, as technically, we can use --register-unsafely-without-email for a specific domain to disable notifications only for that domain.

Ok I will look into adding an option to control if and when Virtualmin sends email about Let’s Encrypt cert renewals…

This has been implemented for inclusion in the next release…

1 Like

@jamie from reading the code I can see options have been added to

Virtualmin --> Manage Virtual Sever --> Setup SSL Certificate

I could quite understand the code, have you updated anything else, perhaps a command line binary, server template, API update?

Thanks

Yes I also added the ability to disable renewal emails to the generate-letsencrypt-cert command

thanks for the fix and the update

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