Access mail.domain.com/mail on mail.domain.com

Hi all,

My boss really likes the simplicity of MiaB after I introduced him to it, however he does not like having to go to https://mail.domain.com/mail to view webmail as its pretty long with the original domain on it.

Is there anyway we can perhaps move /mail to just being on mail.domain.com ?

Thanks, Kash.

I assume you meant “domain.com/mail” correct? if so a simple HTML redirect will do the trick.

1 Like

We have two servers. The first one is just a large server dedicated to hosting a couple websites for clients. The other one is just a dedicated MitB server. The domains A root is on the main webserver and mail.domain goes to MitB.

We’re ok with mail.domain.com/calendar but we would much rather have the mail on the root of the subdomain.

Try put in the domain.com/mail dir in index.html:

<html>
    <head>
        <meta http-equiv="refresh" content="0; URL='https://mail.domain.com/mail'" />
    </head>
</html>

This will allow you to instead use https://domain.com/mail and it will redirect to https://mail.domain.com/mail

Won’t this be overwritten in the next MiaB update?

You said the webserver you use was external to your MIAB server correct? If so then this will never be over written.

But even if using the MIAB server as your webserver, /home/user-data/www/* is not overwritten in updates.

1 Like

So then there is really no way to just hide the /mail on mail.domain.com?

You can modify the nginx local.conf file found in /etc/nginx/sites-enabled folder to redirect / to /mail

THIS IS AN UNSUPPORTED MOD HOWEVER

THIS WILL ALSO BE RESET UPON UPDATES AND NEW SITES BEING ADDED

Yeah, I figured that would be the one thing that changes.

With that default, how could I make it so it substitutes domain.com for whatever the domain reached it?

for instance whatever YOURDOMAIN is here: mail.YOURDOMAIN.com -> mail.YOURDOMAIN.com/mail

Can you reword that question for me please?

POSSIBLE RESOLUTION:

Change the following file: /home/user-data/www/default/index.html with:

<html>
    <head>
        <meta http-equiv="refresh" content="0; URL='https://mail.domain.com/mail'" />
    </head>
</html>

Be sure to modify for your needs :slight_smile: hope it helps!

Sorry for late reply, the index.html folder is a default one so I was thinking by default it can redirect each webmail to its respective domain, but under closer inspection I realized that each domain redirects everything to the box’s webmail server.

yes, this file is the one served when you go to mail.domain.com/

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.