Hi,

when I remember the RFC correctly, mailserver’s have to use their hostname (that is also their reverse DNS for that IP) in their HELO-message.
As my server ha a quite technical, long and hard-to-remember hostname, I don’t want to use that for the WebUI for the users (and - if possible - for the IMAP/SMTP-setting in their clients).
Unfortunately, it is AFAIR only possible to set a general MAILCOW_HOSTNAME in the mailcow.conf.
Is it possible, to configure mailcow in a way, that the “nice” URL is used for all user-facing stuff?

I tried it already, and is seems to work with a reverse proxy in front, but only SOGo seems to keep redirecting to the crude hostname. So is there any setting in SOGo where I can hardcode the Domain?

  • Simply add your desired domain to the ADDITIONAL_SAN variable in mailcow.conf - afterwards both, the hostname and the addition domain, can be used to access the ui.

Simply add your desired domain to the ADDITIONAL_SAN variable in mailcow.conf - afterwards both, the hostname and the addition domain, can be used to access the ui.

    Have something to say?

    Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

    3 years later

    heavygale Grave digging here, but is there a way to change the domain that is in the Quarantine mails?

    I do not expose the UI externally as I want to use a separate domain for it, and well, the main domain points directly to the mailcow instance IP, while the secondary domain I want to use (and the one I want in the emails) points to a reverse proxy IP in front of mailcow.

    Would be ideal if I could set that second domain in ADDITIONAL_SAN, but I just need a way of changing what gets sent out in the quarantine emails.

    heavygale Any ideas where that hostname variable is being read from? Could I set it somewhere in the config, and then create a script that would update the quarantine.tpl after every update?

    heavygale Any ideas where that hostname variable is being read from? Could I set it somewhere in the config, and then create a script that would update the quarantine.tpl after every update?

    I’ll just do this after every update: sed -i "s|https://{{ hostname }}|https://mailcow.dmz.arpa|" data/assets/templates/quarantine.tpl

    I suppose all I need to do then is recreate the dovecot, php-fpm and nginx containers.

    No one is typing