Koozali.org: home of the SME Server

Webmail - redirect.php and firewall

DWells

Webmail - redirect.php and firewall
« on: May 27, 2003, 10:48:29 PM »
I've set up SME Server 5.6. It is set to standalone server and is behind a firewall.

Webmail is set up to be a front-end for a Linunx-based Internet Appliance that serves as our e-mail server (IMAP).  

Computers sitting behind the firewall can access Webmail by opening IE and typing https://192.168.1.1/webmail and everything works as I hoped it would.

I'm having trouble getting things to work elegantly from outside the firewall. Currently when a user needs to get to Webmail from the road he opens IE and goes to:   https://123.123.123.123:1080

This takes him to a webpage with two links:  LOGIN TO WEBMAIL and ACCESS MAILBOX.

The Login to Webmail link goes to https://123.123.123.123:1080/horde/imp/login.php  and clicking it takes him to the Webmail login page.  After supplying a UserName and Password and clicking Log In the user gets a Page Not Found error and the URL is https://123.123.123.123:1080/horde/imp/redirect.php

If the user types "mailbox.php" over "redirect.php," they get access to their webmail.  Or, they can hit their BACK button twice and click ACCESS MAILBOX which takes them to https://123.123.123.123:1080/horde/imp/redirect.php

It works ... but it isn't as pretty as I would like it to be.  

Is there anything I can do to avoid the trip to the "redirect.php" URL?  I've spent the morning looking through UseNet and the forum here, but I've yet to run across a solution that applies.

Thanks.

Johan

Re: Webmail - redirect.php and firewall
« Reply #1 on: May 27, 2003, 11:43:13 PM »
Hello,

You write that you give the folowing url to your remote worker

htps://123.123.123.123:1080/horde/imp/login.php

Your port on your firewall is forwarding from port 1080 to 80 on the inside SME box

Why you dont give the short way:

htps://123.123.123.123:1080/webmail

I have placed it here also on this way to support these over a other firewall

If you have a comany web server anywere by a ISP you can also make on that server een subdirectorie called webmail and placed the folowing php script in it

  header('location: htps://123.123.123.123:1080/webmail);
?>

then your remote worker kan gife the folowing url

http://www.yourdomain.com/webmail

the script reroute you to your own Ip number off your firewall en goes to the port what was given. No dificult ipnumer to remember.

good lock

Johan

DWells

Re: Webmail - redirect.php and firewall
« Reply #2 on: May 28, 2003, 03:45:18 AM »
I'm using HTTPS so I'm forwarding port 443 ... though I had the same problem with port 80.

Trying http://HTTPS://123.123.123.123:1080/webmail  didn't work at all.  I didn't even get the login screen.  

If there's a way to make this work though, I'm all ears.

Thanks

DWells

Re: Webmail - redirect.php and firewall
« Reply #3 on: May 29, 2003, 12:09:15 AM »
>>If the user types "mailbox.php" over "redirect.php," they get access to their webmail. Or, they can hit their BACK button twice and click ACCESS MAILBOX which takes them to https://123.123.123.123:1080/horde/imp/redirect.php<<

That last bit should read: .123/1080/horde/imp/mailbox.php

Sorry about that.