I want to load balance postfix for outgoing mails.my network configuration is 
as follows.

php application 
------->postfix:25(localhost)---->haproxy(localhost)---------->multiple smtp 
server's for mail relaying to other domains

I have configured haproxy. but i am confused with binding of port.

my /etc/haproxy.cfg file looks like


global
        maxconn     4096 # Total Max Connections. This is dependent on ulimit
        daemon
        nbproc      4 # Number of processing cores. Dual Dual-core Opteron is 4 
cores for example.
        log 127.0.0.1 mail

defaults
        mode        tcp
        clitimeout  60000
        srvtimeout  30000
        contimeout  4000

listen  smtp_proxy
        bind 127.0.0.1:?       which port i should write here.
        mode tcp
        option tcplog
        log global
        server postfix 199.83.x.x:? (  which port i should write here.) 
send-proxy

and postfix also running on same server.

but when i write port no 25 to bind haproxy. but it fails to start because 
postfix already running on port 25.

Now i want to know on which port i should listen (bind) haproxy and what port 
no i should write for postfix server and postscreen_upstream_proxy_protocol = 
haproxy in master.cf file so postfix can use smtp_proxy using haproxy.

 in /etc/postfix/master.cf

?    ( which port i should write here.)         inet  n       -       n       - 
      1       postscreen
smtpd     pass  -       -       n       -       -       smtpd
help will be appreciated.

---
posted at http://www.serverphorums.com
http://www.serverphorums.com/read.php?10,558062,558062#msg-558062

Reply via email to