[SOGo] Passing the remote IP to dovecot

2019-04-07 Thread an...@rodier.me
Hi,

I think there is an error on the page "Config for Nginx and Sogo":

http://wiki.sogo.nu/nginxSettings:

The line below:

proxy_set_header x-webobjects-remote-host 127.0.0.1; 

Should be

  proxy_set_header x-webobjects-remote-host $remote_addr;

If we want to log the real IP address of the requests in the SOGo log
file.

Also, I am trying to log the real IP address, from SOgo to Dovecot, and
it does not seems to work.

I am not absolutely sure where the error is, i.e. from my SOGo
configuration or Dovecot one, but is there any way to check the IP is
really passed to Dovecot, please?

Is there any line that has been forgotten in the example configuration
file, please?

Thanks.

-- 
André Rodier
HomeBox: https://github.com/progmaticltd/homebox
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Passing the remote IP to dovecot

2019-04-11 Thread an...@rodier.me

On 2019-04-07 22:22, André Rodier wrote:

Hi,

I think there is an error on the page "Config for Nginx and Sogo":

http://wiki.sogo.nu/nginxSettings:

The line below:

proxy_set_header x-webobjects-remote-host 127.0.0.1; 

Should be

  proxy_set_header x-webobjects-remote-host $remote_addr;

If we want to log the real IP address of the requests in the SOGo log
file.

Also, I am trying to log the real IP address, from SOgo to Dovecot, and
it does not seems to work.

I am not absolutely sure where the error is, i.e. from my SOGo
configuration or Dovecot one, but is there any way to check the IP is
really passed to Dovecot, please?

Is there any line that has been forgotten in the example configuration
file, please?

Thanks.


Hello,

I usually don't bump an email, but I really would like to have this 
solved, or at least to be pointed in a direction to investigate.


How can I forward the source IP address of the connections to Dovecot, 
please?


Thanks a lot,
André

PS: Should I subscribe to any paid support to have answers?
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Passing the remote IP to dovecot

2019-04-12 Thread Gordon Messmer

On 4/11/19 1:36 AM, André Rodier "(an...@rodier.me) wrote:
How can I forward the source IP address of the connections to Dovecot, 
please? 



I don't think you can.  That's not a feature of the standard IMAP protocol.

Dovecot supports proprietary protocol extensions to forward client 
address information, but I'm not aware of any implementation of those 
extensions in SOGo.  Dovecot also supports a "proxy protocol" developed 
by the haproxy project, but again, I don't believe that's implemented in 
SOGo.  Both of these are non-standard, but mentioned on this page:


https://wiki2.dovecot.org/HAProxy

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Passing the remote IP to dovecot

2019-04-13 Thread an...@rodier.me

On 2019-04-12 04:06, Gordon Messmer wrote:

On 4/11/19 1:36 AM, André Rodier "(an...@rodier.me) wrote:
How can I forward the source IP address of the connections to Dovecot, 
please?



I don't think you can.  That's not a feature of the standard IMAP 
protocol.


Dovecot supports proprietary protocol extensions to forward client
address information, but I'm not aware of any implementation of those
extensions in SOGo.  Dovecot also supports a "proxy protocol"
developed by the haproxy project, but again, I don't believe that's
implemented in SOGo.  Both of these are non-standard, but mentioned on
this page:

https://wiki2.dovecot.org/HAProxy



I confirm this is working perfectly with RoundCube, even when using 
imapproxy to cache IMAP connections.


Any chance to integrate this function directly into SOGo, please?

It seems to be a _de facto_ standard, accoring to Wikipedia: 
https://en.wikipedia.org/wiki/X-Originating-IP


Thanks a lot for your fabulous software!

André
--
https://github.com/progmaticltd/homebox
--
users@sogo.nu
https://inverse.ca/sogo/lists