Use compressed form of ipv6 in $sender_host_address under -bh. Bug 3027
[exim.git] / test / confs / 3451
1 # Exim test configuration 3451
2
3 SERVER =
4 PEX = :
5
6 .include DIR/aux-var/tls_conf_prefix
7
8 primary_hostname = myhost.test.ex
9
10 # ----- Main settings -----
11
12 acl_smtp_rcpt = accept
13
14 log_selector = +tls_peerdn
15
16 queue_only
17 queue_run_in_order
18
19 smtp_accept_max_nonmail = 0
20
21 tls_advertise_hosts = *
22
23 # Set certificate only if server
24
25 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
26 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
27
28
29 # ----- Authenticators -----
30
31 begin authenticators
32
33 plain:
34   driver = plaintext
35   public_name = PLAIN
36   server_condition = "\
37     ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}"
38   server_set_id = $2
39   client_send = ^userx^secret
40
41
42 # ----- Routers -----
43
44 begin routers
45
46 client:
47   driver = accept
48   condition = ${if eq {SERVER}{server}{no}{yes}}
49   retry_use_local_part
50   transport = send_to_server
51
52 server:
53   driver = accept
54   retry_use_local_part
55   transport = local_delivery
56
57
58 # ----- Transports -----
59
60 begin transports
61
62 local_delivery:
63   driver = appendfile
64   file = DIR/test-mail/$local_part
65   create_file = DIR/test-mail
66   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
67   user = CALLER
68
69 send_to_server:
70   driver = smtp
71   allow_localhost
72   hosts = 127.0.0.1
73   port = PORT_D
74   hosts_try_fastopen =  :
75   hosts_try_auth = *
76   hosts_noproxy_tls = PEX
77
78 # End