Hi Malcolm,

On Tue, Dec 07, 2010 at 01:40:40PM +0000, Malcolm Turnbull wrote:
> Willy,
> New PROXY protocol sounds great, I've just patched stunnel 4.34 and
> running it with HAProxy 1.5-dev3... but what commands do I need?
> How would you use it for SMTPS OR IMAPS for example?

It will work just as for HTTPS. The principle of the PROXY protocol is
to prepend a unique line in the data before any other data, and not to
alter the transported payload. The recipient (here haproxy) simply removes
the line before processing the connection as if it were not there.

The principle is a bit similar to the XCLIENT protocol introduced with
Postfix, except that it was specific to SMTP. For a long time I thought
we could easily adapt it but it looks too much flexible for ensuring we
do the thing right in pure TCP, and not necessarily suited for transporting
low-level information, hence the new protocol.

> Any chance of a brief introduction and example of the new PROXy protocol?

I won't repeat what other kind posters have already proposed before me :-)

Cheers,
Willy


Reply via email to