Giter VIP home page Giter VIP logo

plesk_mailcert's Introduction

plesk_mailcert

Version 1.06

Copies Plesk LetsEncrypt CERT to Mailservers and Webmin

The script MAILCERT is used if you secured your plesk server also with an LetsEncrypt certificate, Example: server.mydomain.tld WARNING! This is experimental and only tested on Debian/Ubuntu Systems at this time. Make sure you have backed up your PEM files before usage

Supported:

  • Plesk 12.5
  • Debian
  • Postfix
  • Dovecot
  • Courier
  • Webmin
  • Qmail

Usage:

  • Install the LetsEncrypt Plesk Extension: https://github.com/plesk/letsencrypt-plesk
  • Add a webspace with your plesk hostname and secure it with as LetsEncrypt certificate
  • Edit /etc/mailcert/mailcert.cfg or set your certificate's hostname via command variable.
  • Run it manually or set up cron job. Example: @hourly /root/plesk-certupdate/mailcert -r -s myserver.net > /dev/null
Usage: mailcert [-v : Version Check] [-r : Run Certificate Check] [-h: Display Help]
 -v : Checks if a newer version of this script is available.
 -s example.com : Sets the hostname via command line.
 -r : Runs the script. If running in a cron job you will need to run this argument.
 -h : Displays this help page.

Remarks: The MAILCERT Script try's to get the actual PEM File from the vhost. This file is changed after each renewal of the LetsEncrypt certificate. If the file exists, it will be copied to the known default pem file of the services. At this time:

  • Dovecot: /etc/dovecot/private/ssl-cert-and-key.pem
  • Postfix: /etc/postfix/postfix_default.pem
  • Courier IMAP: /usr/share/imapd.pem
  • Courier POP3: /usr/share/pop3d.pem
  • Webmin: /etc/webmin/miniserv.pem
  • Qmail: /var/qmail/control/servercert.pem

plesk_mailcert's People

Contributors

boisecomputer avatar powie avatar m-witt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.