I tried searching around for someone else who may have done this before, but wasn’t able to find what I’m looking for. Hopefully someone can point me in the right direction.
I’m using the dockerized mailcow. I have the following A/AAAA records pointed at my server:
- cortana.domain.tld
- mail.domain.tld
And some CNAMES:
- smtp.domain.tld // imap.domain.tld // mailcow.domain.tld // webmail.domain.tld => cortana.domain.tld
I also have all the other records needed by Mailcow, I just haven’t mentioned them for the purpose of this post.
What I’d like to do is rearrange my Nginx config so that:
- webmail.domain.tld serves SOGo (Ideally at the base / URL, but redirecting to /SOGo would be fine too)
- mailcow.domain.tld serves the MailCow Admin Login page
- Nginx isn’t listening for any of the other domains (imap. // smtp. // etc.)
I tried playing around with the Nginx configs in /opt/mailcow-dockerized/data/conf/nginx
; however any changes I make seem to be reversed when I restart the Nginx container. There’s also a lot of include
references that make it more difficult for me to follow what is going where.
Has anyone already achieved this that can point me in the right direction? Thanks.