File: haproxy.md

package info (click to toggle)
chasquid 1.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,744 kB
  • sloc: sh: 1,325; python: 341; makefile: 78
file content (31 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# HAProxy integration

As of version 1.6, [chasquid] supports being deployed behind a [HAProxy]
instance.


## Configuring HAProxy

In the backend server line, set the [send-proxy] parameter to turn on the use
of the PROXY protocol against chasquid.

You need to set this for each of the ports that are forwarded.

Only PROXY protocol v1 is supported for now.


## Configuring chasquid

Add the following line to `/etc/chasquid/chasquid.conf`:

```
haproxy_incoming: true
```

That turns HAProxy support on for all incoming SMTP connections.


[chasquid]: https://blitiri.com.ar/p/chasquid
[HAProxy]: https://www.haproxy.org/
[send-proxy]: http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#5.2-send-proxy