[imp] imp through forwarded port

Eric Rostetter eric.rostetter at physics.utexas.edu
Wed Jun 11 15:35:59 PDT 2003


Quoting Delmer Wells <delmer at delmer.com>:

> I installed IMP a few weeks back and it is useable.

What version?

> Users login to imp by going to https://xxx.xxx.xxx.xxx:1080 and are then
> forwarded to a box behind the firewall.
>
> In a nutshell, following authentication it looks like redirect.php is trying
> to open https://xxx.xxx.xxx.xxx/horde/imp/mailbox.php and failing so users
> appear to hang at https://xxx.xxx.xxx.xxx:1080/horde/imp/redirect.php.
> Hitting the back button on the browser exposes the failed url.

You can have the web server listen on 80 and redirect that to 1080, but
that probably is against your security policy and/or resource intensive,
so you probably don't want to do that.

> What I need to make happen is have redirect.php send people to
> https://xxx.xxx.xxx.xxx:1080/horde/imp/mailbox.php.  (The problem I'm having
> is the port number is getting stripped out.)

In CVS HEAD at least, you can edit horde/config/conf.php and set

$conf['server']['port'] = '1080'

and in older versions you can edit horde/config/registry.php and in the
$this->application['horde'] array set

    'server_port' => '1080'

and all *full* urls will have that port in it.  Relative urls I'm not
sure if it is even needed or not?

In any case, if the above fails, you should edit, if you want to edit
code, horde/lib/Horde.php and change the url function to always generate
full urls with the port included.  Or so I would guess (not tested).

> I've found that I can hardcode several of the variables in redirect.php and
> still get things to work (I always restore an original copy of the file when
> I'm done playing) but I've yet to find the solution I need.

Try one or more of the above.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the imp mailing list