DMARC: expand main-config options. Bug 3102
[exim.git] / test / confs / 1148
1 # Exim test configuration 1148
2
3 .include DIR/aux-var/tls_conf_prefix
4
5 primary_hostname = myhost.test.ex
6 log_selector = +received_recipients
7
8 # ----- Main settings -----
9
10 .ifdef SUB
11 tls_on_connect_ports = SUB
12 .endif
13
14 tls_advertise_hosts = *
15 tls_certificate = DIR/aux-fixed/cert1
16 tls_privatekey = DIR/aux-fixed/cert1
17
18 queue_only
19 queue_run_in_order
20
21 acl_smtp_atrn = check_atrn 
22 acl_smtp_rcpt = accept
23
24 # ----- ACL -----
25
26 begin acl
27
28 check_atrn:
29   warn          set acl_m0 = clientdom.net
30                 logwrite = tls_in_cipher $tls_in_cipher
31   defer         !atrn_domains = <, $acl_m0
32                 message = 453 You have no mail
33   accept
34
35 # ----- auths ----
36
37 begin authenticators
38
39 plain:
40   driver = plaintext
41   public_name = PLAIN
42   server_advertise_condition = ${if def:tls_in_cipher}
43   server_condition = "\
44     ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
45   server_set_id = $auth2
46
47   client_send = ^userx^secret
48
49 # -------- routers ---
50
51 begin routers
52
53 to_customer:
54   driver =      manualroute
55   condition =   ${if eq {$atrn_mode}{P}}
56   route_data =  <;$atrn_host
57   self =        send
58   transport =   call_customer
59
60 to_provider:
61   driver =      manualroute
62   condition =   ${if eq {$atrn_mode}{C}}
63   route_data =  <;$domain
64   self =        send
65   transport =   call_provider
66
67 # -------- transports ---
68
69 begin transports
70
71 call_customer:
72   driver =                      smtp
73   allow_localhost
74   hosts_require_tls =           *
75   tls_verify_certificates =     DIR/aux-fixed/cert1
76   tls_verify_cert_hostnames =   :
77
78 call_provider:
79   driver =              smtp
80   port =                PORT_D2
81   hosts_try_auth =      *
82   tls_verify_certificates =
83   command_timeout =     10m
84
85 # End