Re: 404 after sending mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Tomas Kuliavas wrote:
> 
> 
> Let's start by finding why autodetection fails. Looks like PHP_SELF is
> missing. PHP upgrade should not change things. I don't see any similar
> things in changelog. It might be one of FastCGI setup differences or some
> SquirrelMail security updates corrupt PHP_SELF.
> 
> Could you create test script with
> ---
> <?php
> header('Content-Type: text/plain;');
> var_dump($_SERVER);
> ---
> put it in SquirrelMail src directory, run it same way as you run
> configtest.php (http://mail.example.org/src/test.php) and show script
> output. Replace domain info with 'example.org'. Or test PHP settings
> according to SquirrelMail docs
> (http://www.squirrelmail.org/wiki/TestPHPSettings) and show PHP variables
> table.
> 

PHP_SELF seems to return a zero-byte string.  the script you suggested
renders thusly:

array(56) {
  ["MACHTYPE"]=>
  string(4) "i386"
  ["USER"]=>
  string(4) "root"
  ["MAIL"]=>
  string(14) "/var/mail/root"
  ["VENDOR"]=>
  string(5) "intel"
  ["SHLVL"]=>
  string(1) "2"
  ["HOME"]=>
  string(5) "/root"
  ["OLDPWD"]=>
  string(38) "/usr/local/www/squirrelmail-1.4.19/src"
  ["LSCOLORS"]=>
  string(22) "Exfxcxdxbxegedabagacad"
  ["PAGER"]=>
  string(16) "/usr/bin/less -X"
  ["ERR"]=>
  string(1) "0"
  ["GROUP"]=>
  string(5) "wheel"
  ["LOGNAME"]=>
  string(4) "root"
  ["_"]=>
  string(28) "/usr/local/etc/rc.d/lighttpd"
  ["BLOCKSIZE"]=>
  string(1) "K"
  ["TERM"]=>
  string(11) "xterm-color"
  ["PATH"]=>
  string(81)
"/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin"
  ["RC_PID"]=>
  string(5) "78684"
  ["REMOTEHOST"]=>
  string(11) "10.1.1.4"
  ["HISTSIZE"]=>
  string(4) "1000"
  ["SHELL"]=>
  string(8) "/bin/csh"
  ["HOST"]=>
  string(21) "mail.example.org"
  ["OSTYPE"]=>
  string(7) "FreeBSD"
  ["PWD"]=>
  string(34) "/usr/local/www/squirrelmail-1.4.19"
  ["CLICOLOR"]=>
  string(3) "YES"
  ["FTP_PASSIVE_MODE"]=>
  string(3) "YES"
  ["HOSTTYPE"]=>
  string(7) "FreeBSD"
  ["EDITOR"]=>
  string(2) "vi"
  ["PHP_FCGI_CHILDREN"]=>
  string(1) "1"
  ["FCGI_ROLE"]=>
  string(9) "RESPONDER"
  ["SERVER_SOFTWARE"]=>
  string(15) "lighttpd/1.4.25"
  ["SERVER_NAME"]=>
  string(18) "mail.example.org"
  ["GATEWAY_INTERFACE"]=>
  string(7) "CGI/1.1"
  ["SERVER_PORT"]=>
  string(2) "80"
  ["SERVER_ADDR"]=>
  string(12) "10.1.1.4"
  ["REMOTE_PORT"]=>
  string(5) "55400"
  ["REMOTE_ADDR"]=>
  string(11) "10.1.1.5"
  ["SCRIPT_NAME"]=>
  string(13) "/src/test.php"
  ["PATH_INFO"]=>
  string(0) ""
  ["SCRIPT_FILENAME"]=>
  string(46) "/usr/local/www/mail.example.org/src/test.php"
  ["DOCUMENT_ROOT"]=>
  string(33) "/usr/local/www/mail.example.org"
  ["REQUEST_URI"]=>
  string(13) "/src/test.php"
  ["QUERY_STRING"]=>
  string(0) ""
  ["REQUEST_METHOD"]=>
  string(3) "GET"
  ["REDIRECT_STATUS"]=>
  string(3) "200"
  ["SERVER_PROTOCOL"]=>
  string(8) "HTTP/1.1"
  ["HTTP_HOST"]=>
  string(18) "mail.example.org"
  ["HTTP_USER_AGENT"]=>
  string(95) "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7"
  ["HTTP_ACCEPT"]=>
  string(63)
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  ["HTTP_ACCEPT_LANGUAGE"]=>
  string(14) "en-us,en;q=0.5"
  ["HTTP_ACCEPT_ENCODING"]=>
  string(12) "gzip,deflate"
  ["HTTP_ACCEPT_CHARSET"]=>
  string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
  ["HTTP_KEEP_ALIVE"]=>
  string(3) "300"
  ["HTTP_CONNECTION"]=>
  string(10) "keep-alive"
  ["HTTP_COOKIE"]=>
  string(36) "SQMSESSID=nlckfq8q13075a7vb4jj6g4os1"
  ["PHP_SELF"]=>
  string(0) ""
  ["REQUEST_TIME"]=>
  int(1263857684)
}

-- 
View this message in context: http://old.nabble.com/404-after-sending-mail-tp13112479p27218741.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux