Mailcow-dockerized: Change main URL for Admin panel

Created on 30 Nov 2017  路  13Comments  路  Source: mailcow/mailcow-dockerized

Hi there, how can I change the main URL? I would like that whoever reaches mail.host.com instead of seeing the MailCow login, instead redirect to /sogo, and for administrative login use for an instance /admin.
Is it possible?
Thank you

Most helpful comment

Easy way to limit acces to mailcow UI only from one IP:

add this in mailcow-dockerized/data/web/index.php
after "

if ($_SERVER['REMOTE_ADDR'] != "Your.Public.IP.Address"){
header("Location: ./SOGo/");
exit();
}

This way everyone will be redirected to SOGo and wont have access to the admin panel at all, and for user password change you can enable it in /mailcow-dockerized/data/conf/sogo/sogo.conf
by setting SOGoPasswordChangeEnabled = yes; ( restart SOGo afterwards)
tested, and works

All 13 comments

why not forward host.com/webmail to mail.host.com/SOGo instead?

I think the way it is set up right now is good.

My problem is not that, the problem is whoever try to access https://server_host will default to the login page. I am trying to hide the login page and make it accessible only with a custom url

You do realize, that people need that page to set up some personal stuff for their mail account?

I perfectly realize, but i know my customers very well and they only need a webmail and change the password (that si done from sogo right?)

No, that is done via mailcow ui

ok, no problem with that and the user can use /admin in order to access that. My purpose is to not have the admin UI login as the default page for server_address. Can it be done without being overwritten by future updates?

You change the password via Mailcow ui. People also see the mail app configuration instructions there and can create aliases. These are core features...

You can try forwarding or change the nginx.conf and stash the changes. Pop them after an update, as we did before we had a update.sh script.

Still the user and "admin" login to manage the mail account on a meta level are the same page. I don't see the use-case yet trying to hide this, since people will want to be able to change their password and set up aliases.

All my users wanted to be able to do this. Especially the temporary spam alias can be very helpful.

I did not say that this should be a core feature or modification of the product. I simply asked if there is a way for ME to change this behavior without loose changes over upgrades.

of course, this is useful, but my customers could get confused on where they should input their details in order to read emails. Unfortunately, they are not technical people and the barely know how to deal with a webmail (this is a sad reality)

You can sell the Mailcow UI as an entrance to SOGo, since it is available as app there. This could prove advantageous in the future when Mailcow starts to incorporate other apps there.

Easy way to limit acces to mailcow UI only from one IP:

add this in mailcow-dockerized/data/web/index.php
after "

if ($_SERVER['REMOTE_ADDR'] != "Your.Public.IP.Address"){
header("Location: ./SOGo/");
exit();
}

This way everyone will be redirected to SOGo and wont have access to the admin panel at all, and for user password change you can enable it in /mailcow-dockerized/data/conf/sogo/sogo.conf
by setting SOGoPasswordChangeEnabled = yes; ( restart SOGo afterwards)
tested, and works

Duplicate of #393

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pgollor picture pgollor  路  3Comments

Adorfer picture Adorfer  路  3Comments

phipag picture phipag  路  3Comments

patrick7 picture patrick7  路  3Comments

Braintelligence picture Braintelligence  路  3Comments