You should have a php error log.
nginx sets the username and password.
if you are using the example script paul made
(http://git.dbmail.eu/paul/dbmail/tree/contrib/nginx/auth.php?id=2b635f90ba6d505f85bfe65804f7b7a65bcac0dc)
you have to install the imap extension for php.
btw.
the shortest version of the auth.php could be this:
<?php
header("Auth-Status: OK");
header("Auth-Server: 127.0.0.1");
if ($_SERVER["HTTP_AUTH_PROTOCOL"]=="imap") {
header("Auth-Port: 10143");
} else {
header("Auth-Port: 10110");
}
?>
Am 19.12.2013, 10:43 Uhr, schrieb Daniel Schütze <[email protected]>:
Quite possibly, if I use fetch (obviously passing no information on) to
retrieve the auth2.php file from my web server my apache log gives me
127.0.0.1 - - [19/Dec/2013:09:36:55 +0000] "GET /mailweb/auth2.php
HTTP/1.1"
200 - "-" "fetch libfetch/2.0"
When nginx calls the same page I get
192.168.0.1 - - [19/Dec/2013:09:39:22 +0000] "GET /mailweb/auth2.php
HTTP/1.0" 500 - "-" "-"
I'll try and dig out a freebsd script to send the headers to see if my
apache/php setup is accepting/processing them at all.
Daniel
Reindl Harald Wed, 18 Dec 2013 09:57:02 -0800
Am 18.12.2013 18:46, schrieb Daniel Schütze:
I’ve tried your suggestion but I’m hitting a brick wall which is a bit
irritating given how “simple” nginx config seems to be, my error in the
nginx log is
that smells like a HTTP setup
honestly until a few weeks ago i did even not know that NGNIX can
proxy other protocols than http/https at all - i continue point
to dovecot as imap/pop3-proxy
------------------------
CWA International
Balmoral House
9 John Street
London
WC1N 2ES
(t) + 44 (0)20 7242 8444
(e) [email protected]
(w) http://www.cwa.uk.com/
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
--
Harald Leithner
ITronic
Wiedner Hauptstraße 120-124/5.1, 1050 Wien, Austria
Tel: +43-1-545 0 604
Fax: +43-1-786 23 88 26
Mobil: +43-699-123 78 4 78
Mail: [email protected] | itronic.at
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail