Skip to content

Multiple Domains SSL Certificate #2995

@johncadengo

Description

@johncadengo

Hi, I want to use docker mail server with multiple domains. The documentation says I can do the following:

https://github.com/docker-mailserver/docker-mailserver#support-for-multiple-domains

./setup.sh email add [email protected]
./setup.sh email add [email protected]
./setup.sh email add [email protected]

I was able to complete this step. However, I want to be able to have the domains have SSL certificates. I ran certbot like this:

certbot certonly --config-dir /home/john/docker-mailserver/letsencrypt --logs-dir /home/john/docker-mailserver/letsencrypt/log --work-dir /home/john/docker-mailserver/letsencrypt -d domain2.com -d "*.domain2.com" --preferred-challenges dns-01 --manual

And I was able to produce a new certificate in the letsencrypt/live folder. However, when I try using my mail client to connect, it says the connection is insecure and when I show certificate, it shows only the certificate for the original domain, which is listed in my docker-compose.yml file, and works just fine.

How do I have an SSL certificate for my 2nd domain?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomeone asked a question - feel free to answermeta/closed due to age or inactivityThis issue / PR has been closed due to inactivitymeta/help wantedThe OP requests help from others - chime in! :Dmeta/needs triageThis issue / PR needs checks and verification from maintainersmeta/staleThis issue / PR has become stale and will be closed if there is no further activitypriority/low

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions