Using Letsencrypt certificate

Problems/questions regarding the MailCleaner configuration

Moderators: FlorianB, Pascal, bourgeois, mentor

JimD
Posts: 1
Joined: Sun Apr 03, 2016 2:39 pm
How did you hear about Mailcleaner: internet search

Using Letsencrypt certificate

Postby JimD » Thu Dec 29, 2016 4:54 pm

Hello.
We have Mailcleaner running on a virtual machine, and relaying emails to our mail server.
We used to buy wildcard certificates for our domains, and were using it to enable SSL in Mailcleaner too. We are now moving to Letsencrypt SSL certificates, which do not allow wildcards, and are issued for 3 months only.
I know how to manually introduce the certificate via the admin interface, but I would like to know if there is a way to set-up Mailcleaner so it automatically uses the last certificate (avoiding manual input).
Does anybody know how to use Mailcleaner and Letsencrypt ?

Thanks
JM
gadago
Posts: 17
Joined: Sat Feb 06, 2010 4:08 pm
How did you hear about Mailcleaner: work

Re: Using Letsencrypt certificate

Postby gadago » Mon Jan 02, 2017 12:18 pm

Hi Jim,

We are using Letsencrypt with MailCleaner.

Most of the standard LE clients seem to need a newer version of python to run, which MailCleaner doesn't have at the moment.

So, we used https://github.com/srvrco/getssl

It runs periodically on a different machine and copies the acme-challenge onto the primary mailcleaner to /opt/mailcleaner/www/user/htdocs/.well-known/acme-challenge

I then wrote a basic php script to update the certificates in the mailcleaner MySQL database for both http and mysql. Finally, restart the mailcelaner http and smtp services.

Hope this helps. PM me if you would like the php script I created.

Kind regards,
Gavin
User avatar
jeff
Posts: 38
Joined: Fri Sep 22, 2006 6:57 am
Location: Milwaukee, WI, USA
Contact:

Re: Using Letsencrypt certificate

Postby jeff » Fri Feb 03, 2017 5:37 pm

I'd be interested in any type of scripting that anyone is using to get letsencrypt working, even in a semi-automatic way, with Mailcleaner.
Thanks,
Jeff
User avatar
cercamon
Posts: 1
Joined: Fri May 19, 2017 8:37 am
How did you hear about Mailcleaner: googling around
Location: Switzerland
Contact:

Re: Using Letsencrypt certificate

Postby cercamon » Fri May 19, 2017 10:49 am

+1

Quite impossible to use certbot-auto.
So far I've been using https://gethttpsforfree.com which is ok, but quite hard to repeat every 3 months.
Thus every automated or semi-automated procedure to use LetsEncrypt on MC 2014 Server is very welcome.
FlorianB
Posts: 258
Joined: Wed Apr 01, 2015 2:27 pm
How did you hear about Mailcleaner: job

Re: Using Letsencrypt certificate

Postby FlorianB » Fri May 26, 2017 12:42 pm

Hello,
After release of the new version, we have some plan to support let's encrypt certificat too. It will certainly not be ready soon but it will be done.
Regards,
Florian
derdanilo
Posts: 26
Joined: Tue Jun 21, 2016 12:16 pm
How did you hear about Mailcleaner: Search

Re: Using Letsencrypt certificate

Postby derdanilo » Tue Oct 10, 2017 6:16 pm

gadago wrote:I then wrote a basic php script to update the certificates in the mailcleaner MySQL database for both http and mysql. Finally, restart the mailcelaner http and smtp services.
Hope this helps. PM me if you would like the php script I created.



Would you be so kind and post your script or a link to github or something so others can have access to the script as well? :)
Thanks!

Return to “Configuration”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest