Am 19.12.2013, 17:12 Uhr, schrieb Reindl Harald <[email protected]>:
Am 19.12.2013 16:51, schrieb Daniel Schütze:
Ah, thanks for the heads up on the imap extension, I was so convinced I
had
that it was installed (because I had it on an earlier version of php) I
didn't check till I saw your e-mail.
I had actually given up on that script after finding another one (which
as
it happens turned out be buggy but I've fixed it).
So I will give it ago with ssl connections and see if it works/helps
before
moving over the standard 143 connections as well.
Of course I've remembered this now means that dbmail is logging
localhost
connections in dbmail_authlog instead of the actual originating IP
which it
does when connections are direct.
and one reason more for dovecot with the configuration of my examples
dbmail does log *nothing* but internal errors here and dovecot
happily logs the real remote address per default
honestly if i see someone writing PHP scripts to setup
a IMAP-proxy with a web-proxy i shudder
PHP doesn't do the proxy it only returns the IP, Port and Status to nginx,
you could use any website/scripting language or C programm that could send
the correct http header to nginx.
if for whatever reason ngnix should be used:
http://wiki.nginx.org/MailProxyModule
Harald Leithner Thu, 19 Dec 2013 06:52:24 -0800
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=2b635f90ba6
d505f85bfe65804f7b7a65bcac0dc)
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");
}
?>
--
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