Wietse:
> Your first mistake is to use postscreen to submit mail from
> an application.

Naval saini:
> Than please tell me how can i balance load of outgoing mails using haproxy
> and what postfix program i should use to receive mails from php application
> and balancing load using haproxy backhand servers.

Turn off postscreen. 
http://www.postfix.org/POSTSCREEN_README.html#turnoff

Turn on smtpd_upstream_proxy_protocol. 
http://www.postfix.org/postconf.5.html#smtpd_upstream_proxy_protocol

> Does relayhost parameter play any role in haproxy like it plays in DNS load
> balancing.

Your problem is RECEIVING mail. relayhost is for SENDING mail.
http://www.postfix.org/BASIC_CONFIGURATION_README.html

        Wietse

Reply via email to