ONLYOFFICE / Docker-MailServer

ONLYOFFICE Mail Server is a full-featured mail server solution developed on the base of the iRedMail package, containing the following components: Postfix, Dovecot, SpamAssassin, ClamAV, OpenDKIM, Fail2ban.
Other
83 stars 56 forks source link

SSL with Let's Encrypt #18

Open Sawrz opened 4 years ago

Sawrz commented 4 years ago

Hi, In your docs, you mention the SSL certs need to have a specific name. However, I use let's encrypt, which gives my certificates names by itself. Renaming the certs each time those renew would be a very tedious, repetitive and unnecessary task.
Is there a way to let the container search for a different naming scheme? Like the domain name given in FIRST_DOMAIN?

Maybe there is an environment variable to specify the name and you don't mention it here? Either way, it would make the maintenance much smoother =)

Carazyda commented 4 years ago

Hello @Sawrz we don't have env variables for this, but you can try using a symlink to certs in your OS.

razorness commented 4 years ago

Symlink is not working. You will have to copy your pems to /app/onlyoffice/MailServer/data/certs:

You have to write a small script to copy your certs and restart docker container resp. mail server as part of a renew hook.