basic & pipelined transmit testcases
[exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2 SERVER=
3
4 exim_path = EXIM_PATH
5 keep_environment =
6 host_lookup_order = bydns
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/SERVER%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11 chunking_advertise_hosts = *
12 tls_advertise_hosts =
13
14
15 # ----- Main settings -----
16
17 domainlist local_domains = @
18
19 acl_smtp_rcpt = check_recipient
20 acl_smtp_data = check_data
21 trusted_users = CALLER
22 queue_only
23 smtp_receive_timeout = 2s
24
25
26 # ----- ACL -----
27
28 begin acl
29
30 check_recipient:
31   accept hosts = :
32   accept domains = +local_domains
33   deny   message = relay not permitted
34
35 check_data:
36   warn   message = X-acl-message-linecount: $message_linecount
37   accept
38
39
40 # ----- Routers -----
41
42 begin routers
43
44 to_server:
45   driver = accept
46   condition =   ${if !eq {SERVER}{server}}
47   transport =   remote_smtp
48   errors_to =   ""
49
50 fail_remote_domains:
51   driver = redirect
52   domains = ! +local_domains
53   data = :fail: unrouteable mail domain "$domain"
54
55 localuser:
56   driver = accept
57   check_local_user
58   transport = local_delivery
59   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
60
61
62 # ----- Transports -----
63
64 begin transports
65
66 local_delivery:
67   driver = appendfile
68   delivery_date_add
69   envelope_to_add
70   file = DIR/test-mail/$local_part
71   headers_add = "X-body-linecount: $body_linecount\n\
72                  X-message-linecount: $message_linecount\n\
73                  X-received-count: $received_count"
74   return_path_add
75
76 remote_smtp:
77   driver = smtp
78   hosts =       127.0.0.1
79   port =        PORT_S
80   allow_localhost
81   command_timeout = 2s
82   final_timeout = 2s
83
84 # ----- Retry -----
85
86 begin retry
87 * * F,30m,5m;
88 # End