Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0230 |
2 | ||
3 | SERVER= | |
4 | ||
5 | exim_path = EXIM_PATH | |
6 | host_lookup_order = bydns | |
7 | primary_hostname = myhost.test.ex | |
afda344b PH |
8 | spool_directory = DIR/spool |
9 | log_file_path = DIR/spool/log/SERVER%slog | |
10 | gecos_pattern = "" | |
11 | gecos_name = CALLER_NAME | |
23f3dc67 | 12 | tls_advertise_hosts = |
afda344b PH |
13 | |
14 | # ----- Main settings ----- | |
15 | ||
16 | domainlist local_domains = test.ex : *.test.ex | |
17 | acl_smtp_rcpt = check_recipient | |
18 | log_selector = \ | |
19 | +incoming_port \ | |
20 | +incoming_interface \ | |
21 | +smtp_connection | |
22 | queue_only | |
23 | queue_run_in_order | |
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 | ||
36 | # ----- Routers ----- | |
37 | ||
38 | begin routers | |
39 | ||
aeaf5db3 JH |
40 | .ifdef RT |
41 | to_server: | |
42 | driver = manualroute | |
43 | transport = remote | |
44 | route_list = * 127.0.0.1 | |
45 | self = send | |
46 | .endif | |
47 | ||
afda344b PH |
48 | fail_remote_domains: |
49 | driver = redirect | |
50 | domains = ! +local_domains | |
51 | data = :fail: unrouteable mail domain "$domain" | |
52 | ||
53 | server: | |
54 | driver = accept | |
55 | retry_use_local_part | |
56 | transport = local_delivery | |
57 | ||
58 | ||
59 | # ----- Transports ----- | |
60 | ||
61 | begin transports | |
62 | ||
63 | local_delivery: | |
64 | driver = appendfile | |
65 | file = DIR/test-mail/$local_part | |
66 | headers_add = Port: $sender_host_port | |
67 | user = CALLER | |
68 | ||
aeaf5db3 JH |
69 | remote: |
70 | driver = smtp | |
71 | port = PORT_D | |
afda344b PH |
72 | |
73 | # ----- Retry ----- | |
74 | ||
75 | begin retry | |
76 | ||
77 | * * F,5d,10s | |
78 | ||
79 | # End |