summaryrefslogtreecommitdiff
path: root/test/confs/3901
blob: bdcfbce1f967658abf49fce6e24ea439d5520c04 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Exim test configuration 9351

SERVER=

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

# ----- Main settings -----

acl_smtp_rcpt = check_recipient

.ifdef TRUSTED
tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}

tls_verify_hosts = HOSTIPV4
tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail}
.endif

queue_only

# ----- ACL -----

begin acl

check_recipient:
  deny     message = authentication required
          !authenticated = *
  accept


# ----- Route -----

begin routers

all:
  driver = accept
  transport = server
  errors_to =

begin transports

server:
  driver =		smtp
  hosts =		127.0.0.1
  allow_localhost
  port =		PORT_D
  hosts_require_auth =	*

# ----- Authentication -----

begin authenticators

dovecot:
  driver = dovecot
  public_name = PLAIN
  server_socket = 127.0.0.1 PORT_S
.ifdef TRUSTED
  server_tls =	true
.endif
  server_set_id = $auth1

client:
  driver = plaintext
  public_name = PLAIN
  client_send = ^username^mysecret

# End