blob: 1c0d46dddc6f96d221816809bd8012699494c14d [file] [log] [blame]
Willy Tarreaub6866442008-07-14 23:54:42 +02001# This is a test configuration. It listens on port 8025, waits for an incoming
2# connection, and applies the following rules :
3# - if the address is in the white list, then accept it and forward the
4# connection to the server (local port 25)
5# - if the address is in the black list, then immediately drop it
6# - otherwise, wait up to 3 seconds. If the client talks during this time,
7# drop the connection.
8# - then accept the connection if it passes all the tests.
9#
10# Note that the rules are evaluated at every new chunk of data read, and at
11# delay expiration. Rules which apply to incomplete data don't match as long
12# as the timer has not expired.
13
14listen block-fake-mailers
15 log 127.0.0.1:514 local0
16 option tcplog
17
18 mode tcp
19 bind :8025
20 timeout client 6s
21 timeout server 6s
22 timeout connect 6s
23
24 tcp-request inspect-delay 4s
25
26 acl white_list src 127.0.0.2
27 acl black_list src 127.0.0.3
28 acl talkative req_len gt 0
29
30 tcp-request content accept if white_list
31 tcp-request content reject if black_list
32 tcp-request content reject if talkative
33
34 balance roundrobin
35 server mail 127.0.0.1:25