Hi Jonathan - well what can I say apart from thanks!!! The fix you outlined below worked a treat, SM works perfectly fine now when tested on the internet facing address.
Thanks a million - Julian. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Angliss Sent: Tuesday, July 12, 2005 5:01 AM To: Julian Grunnell Cc: [email protected] Subject: Re: [SM-USERS] Problem when sending an email - update -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Julian Grunnell, On Friday, July 01, 2005, you wrote: > Hi - well still no joy with this one, out of ideas. What I have found > though is that plently of people have had problems with SM and > firewalls. Not many answers to those who have. And none who have found > an answer have the exact same problem that I'm facing ;-) > [..] The 1st is from the test against the internal IP of my server: [..] > The 1st line is when I click on "Compose" and the 2nd line is when I > click on "Send". This test works perfectly well, in fact all of the SM > install works. > Now compare this against when I use the public facing IP: > **my-ip-here** - - [01/Jul/2005:13:24:53 +0100] "POST /src/compose.php > HTTP/1.1" 302 5 "http://mydomain-here/src/compose.php?mailbox=INBOX" > "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" > So I get the 1st line as with the internal IP test, but the 2nd line > is missing when I click "Send", the bit that calls "GET > /src/right_main.php?mailbox=INBOX&sort=6&startMessage= HTTP/1.1" that > just times out. And I get "Action canceled" in IE. I do receive the > email though!! And clicking refresh refreshed the screen. > Looking at these logs then maybe the problem is somewhere to do with > the call to "GET > /src/right_main.php?mailbox=INBOX&sort=6&startMessage= > HTTP/1.1" and the firewall?? Actually the problem is in the code for get_location. Because you're using NAT on your firewall to forward port 80 connections to a different host on the internal network, and a different port (port 100 right?), the get_location code is writing the redirect url for the GET part of the compose page based on the information PHP is supplying on the server. You php installation is reporting that the web services are running on port 100, and on a different host. This basically translates that machines on the outside of your network are attempting to connect to port 100, which isn't going to work. For a fix on this one, take a look at functions/strings.php around line 237 you should see code like this: $port = ''; if (! strstr($host, ':')) { if (sqgetGlobalVar('SERVER_PORT', $server_port, SQ_SERVER)) { if (($server_port != 80 && $proto == 'http://') || ($server_port != 443 && $proto == 'https://')) { $port = sprintf(':%d', $server_port); } } } After the $port = ''; add a new line, and put /* and after the } on the end of that bit put */, save and test again. Without having a test case in front of me, I cannot tell you if you need to alter the host code as well, but all the redirect issues are centered around the get_location code which starts on line 200 of functions/strings.php. - -- Jonathan Angliss <[EMAIL PROTECTED]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) iD8DBQFC00BYK4PoFPj9H3MRAkslAJ9FRxzbqUR3XHTaurKdwos1SMK2JQCg8TJp 3neMkPJWc66Fh7qxNsLBQPw= =oZ8i -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
