Docs: Add note on lsearch for IPv4-mapped IPv6 addresses
[exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2 SERVER=
3 SRV=
4 LIST=
5 ALLOW=
6
7 exim_path = EXIM_PATH
8 keep_environment =
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14 chunking_advertise_hosts = *
15 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
16 .ifdef _HAVE_REQTLS
17 tls_advertise_requiretls = :
18 .endif
19 .ifdef _HAVE_PIPE_CONNECT
20 pipelining_connect_advertise_hosts = :
21 .endif
22
23
24 # ----- Main settings -----
25
26 primary_hostname = testhost.test.ex
27 domainlist local_domains = @ : test.ex
28
29 acl_smtp_rcpt = check_recipient
30 acl_smtp_data_prdr = check_prdr
31 acl_smtp_data = check_data
32 trusted_users = CALLER
33 queue_only
34 smtp_receive_timeout = 2s
35
36 .ifdef _HAVE_DKIM
37 log_selector = +received_recipients +dkim_verbose
38 .else
39 log_selector = +received_recipients
40 .endif
41
42 .ifdef _OPT_MAIN_TLS_CERTIFICATE
43 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
44 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
45 .endif
46
47 ALLOW
48
49 # ----- ACL -----
50
51 begin acl
52
53 check_recipient:
54   accept hosts = :
55   accept domains = +local_domains
56   deny   message = relay not permitted
57
58 check_prdr:
59   accept local_parts = good
60   deny
61
62 check_data:
63   warn   message = X-acl-message-linecount: $message_linecount
64   accept
65
66 # ----- Routers -----
67
68 begin routers
69
70 to_server:
71   driver = accept
72   condition =   ${if !eq {SERVER}{server}}
73   transport =   remote_smtp${if eq {SRV}{dkim} {_dkim}}
74   errors_to =   ""
75
76 fail_remote_domains:
77   driver = redirect
78   domains = ! +local_domains
79   data = :fail: unrouteable mail domain "$domain"
80
81 localuser:
82   driver = accept
83   check_local_user
84   transport = local_delivery
85   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
86
87
88 # ----- Transports -----
89
90 begin transports
91
92 local_delivery:
93   driver = appendfile
94   delivery_date_add
95   envelope_to_add
96   file = DIR/test-mail/$local_part
97   headers_add = "X-body-linecount: $body_linecount\n\
98                  X-message-linecount: $message_linecount\n\
99                  X-received-count: $received_count"
100   return_path_add
101
102 remote_smtp:
103   driver = smtp
104   hosts =       127.0.0.1
105   port =        PORT_S
106   allow_localhost
107   command_timeout = 2s
108   final_timeout = 2s
109
110 remote_smtp_dkim:
111   driver = smtp
112   hosts =       127.0.0.1
113   port =        PORT_S
114   allow_localhost
115   command_timeout = 2s
116   final_timeout = 2s
117
118 .ifdef _HAVE_DKIM
119 .ifdef SRV
120   dkim_domain =         test.ex
121   dkim_selector =       sel
122   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
123 .ifndef HEADERS_MAXSIZE
124   dkim_sign_headers =   LIST
125 .endif
126 .endif
127 .endif
128
129 # ----- Retry -----
130
131 begin retry
132 * * F,30m,5m;
133 # End