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


#1

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.


#2

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


#3

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.


#4

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


#5

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


#6

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


#7

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.


#8

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


#9

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


#10

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


#11

Can you reword that question for me please?


#12

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!


#13

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.


#14

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


closed #15

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