Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: calisun on March 12, 2008, 07:57:57 AM

Title: webmail and different domains
Post by: calisun on March 12, 2008, 07:57:57 AM
I have several domains on my server, my question is, is there  way to setup the server so webmail would be accessible only from certain domains.
ie. right now if I go to domainA/webmail and domainB/webmail I get horde log on  screen in both cases.
What I want is domainA/webmail I get Horde log on screen, but domainB/webmail I get nothing or error message.
Title: Re: webmail and different domains
Post by: CharlieBrady on March 12, 2008, 01:29:30 PM
What I want is domainA/webmail I get Horde log on screen, but domainB/webmail I get nothing or error message.

That can be done with custom templates, but IMO would be pointless.
Title: Re: webmail and different domains
Post by: calisun on March 12, 2008, 07:59:43 PM
Thanks Charlie,
Do you or someone be able to show me how to setup custom template to do this. I have no idea how to set one up.
Title: Re: webmail and different domains
Post by: CharlieBrady on March 12, 2008, 09:06:08 PM
Do you or someone be able to show me how to setup custom template to do this.

I simply wouldn't bother. webmail is accessible - why do you care how many different URLs can be used to access it?
Title: Re: webmail and different domains
Post by: calisun on March 13, 2008, 05:42:05 AM
I have couple domains that have a lot of daily traffic (several thousand hits a day) people being people, they will poke around, so I don't want to give them any reason to poke around. I know that I have very secure passwords and they can't get in, but why give them temptation.
Besides, bandwidth is not cheap and all the poking around uses up bites that cost me money.
Title: Re: webmail and different domains
Post by: calisun on March 14, 2008, 08:10:58 AM
Does anybody know how to setup custom template to do this?
Title: Re: webmail and different domains
Post by: cactus on March 14, 2008, 09:51:58 AM
Does anybody know how to setup custom template to do this?

Above should result in a 404 error when trying to access webmail for a domain where is is not enabled.

Disclaimer: This is written down from the top of my head and is untested.

If you run in to troubles remove the modified template fragment (created in step 2) and re-run steps 4 and 5. This should reset your configuration to the working order it was in before making the modifications.
Title: Re: webmail and different domains
Post by: calisun on March 14, 2008, 05:43:18 PM
Thank you very much Cactus.
I will report back with results after I attempt this over the weekend.