Re: SMTP loadbalancer haproxy and logs

From: Israel Garcia <igalvarez#gmail.com>
Date: Fri, 23 Apr 2010 18:17:53 +0200


I forgot to say I'm using HA-Proxy version 1.3.22 2009/10/14

regards
Israel

On Fri, Apr 23, 2010 at 4:52 PM, Israel Garcia <igalvarez#gmail.com> wrote:
> My haproxy configuration running prefectly. A simple LB with two smtp
> servers. But in both smtp servers only report smtp connections from
> haproxy server and I want to log en every smtp server the original ip
> from the sending source server. Is it possible?
>
> global
>  maxconn 500
>  log   127.0.0.1       local0
>  user haproxy
>  group haproxy
> #  debug
> defaults
>  log global
>  mode http
>    stats enable
>    stats auth hadmin:XXXXXX
>  balance roundrobin
>  maxconn 500
>  option httplog
>  option abortonclose
>  retries 3
>  option redispatch
>  clitimeout 15000
>  contimeout 30000
>  srvtimeout 30000
>
> listen stats :80
>        mode http
>        stats enable
>        stats auth hadmin:XXXXX
>        stats refresh    20s
>
> listen smtp :25
>        mode tcp
>        maxconn 500
>        option tcplog
>        balance roundrobin
>        server smtp1 xx.xx.xx.xx:25 check inter 10000
>        server smtp2 xx.xx.xx.xx:25 check inter 10000
>
>
> --
> Regards;
> Israel Garcia
>

-- 
Regards;
Israel Garcia
Received on 2010/04/23 18:17

This archive was generated by hypermail 2.2.0 : 2010/04/23 18:30 CEST