Mail programs such as Outlook and Thunderbird connect to your server over an encrypted connection and check its SSL certificate. /go/mailssl makes sure the server's mail hostname has a valid certificate. It: The server hostname must be a full name with at least two dots, such as mail.example.com. Otherwise no certificate is requested. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Install the certificate, or renew it if it is close to expiry
/go/mailssl
# Replace the existing certificate now
/go/mailssl --force
Options
| Option | Required | Notes |
|---|---|---|
--force |
No | Reissue the certificate regardless of how long the current one is valid. Let’s Encrypt limits how many certificates can be issued for the same names in a week, so don’t use it repeatedly. |
Any other argument is ignored.
Examples
# Install or renew the mail certificate
/go/mailssl
# Replace the certificate now
/go/mailssl --force
# Check the certificate that was issued
certbot certificates -d "$(cat /etc/hostname)"
# Check that the mail ports present a valid certificate
/go/checkmail
Output
All certificate messages come from this command. The certificate tool itself runs quietly.
| Situation | Message |
|---|---|
| Server and IMAP hostname are the same | Installing SSL Certificates on SMTP/IMAP Server Hostname <hostname>... |
| Two different hostnames | Installing SSL Certificates on SMTP/IMAP Server Hostname (<hostname> and <imap-hostname>)... |
| It worked | SSL Certificate Installed Successfully for Hostname (<hostname> - 3 Months)... (or (<hostname> and <imap-hostname> - 3 Months)) |
| It failed | Error: Can not Install SSL Certificate for Hostname (<hostname>)... (or with both names) |
| Nothing to do | No output. |
After an attempt, a line of dashes is printed.
The exit status doesn’t show whether the certificate was installed. Read the message instead.
See the full reference at /go/mailssl and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
