hardware / mailserver

:warning: UNMAINTAINED - Simple and full-featured mail server using Docker
https://store.docker.com/community/images/hardware/mailserver
MIT License
1.29k stars 322 forks source link

Multiple domains for accessing webmail and postfixadmin #333

Closed enbits closed 5 years ago

enbits commented 6 years ago

Classification

Please delete options that are not relevant.

Description

I have a successful setup with multiple virtual hosts:

mail.domain1.com (main domain) mail.domain2.com mail.domain3.com

However I can only access to postfix admin and webmail with the main domain:

webmail.domain1.com -> works webmail.domain2.com -> doesn't work

Do I have to modify traefik config on can this be solved by adding CNAMES? None of the things I've tried worked.

hardware commented 5 years ago
rainloop:
    image: hardware/rainloop
    container_name: rainloop
    restart: ${RESTART_MODE}
    labels:
      - traefik.enable=true
      - traefik.port=8888
      - traefik.frontend.rule=Host:webmail.domain1.com,webmail.domain2.com
      - traefik.docker.network=http_network