| 1 | # Exim test configuration 5400 |
| 2 | |
| 3 | # any options on the cutthrough_delivery contol |
| 4 | CONTROL= |
| 5 | |
| 6 | # optional verify-callout |
| 7 | OPT= |
| 8 | |
| 9 | .include DIR/aux-var/std_conf_prefix |
| 10 | |
| 11 | primary_hostname = myhost.test.ex |
| 12 | |
| 13 | log_selector = +received_recipients |
| 14 | queue_only |
| 15 | |
| 16 | # ----- Main settings ----- |
| 17 | |
| 18 | domainlist local_domains = test.ex : *.test.ex |
| 19 | |
| 20 | acl_smtp_rcpt = ar |
| 21 | |
| 22 | |
| 23 | # ----- ACLs ----- |
| 24 | |
| 25 | begin acl |
| 26 | |
| 27 | ar: |
| 28 | accept |
| 29 | control = cutthrough_deliveryCONTROL |
| 30 | OPT |
| 31 | logwrite = rcpt for $local_part@$domain |
| 32 | |
| 33 | # ----- Routers ----- |
| 34 | |
| 35 | begin routers |
| 36 | |
| 37 | dns: |
| 38 | driver = dnslookup |
| 39 | domains = localhost.test.ex : localhost4.test.ex : thishost.test.ex |
| 40 | self = send |
| 41 | transport = smtp |
| 42 | |
| 43 | all: |
| 44 | driver = manualroute |
| 45 | domains = ! +local_domains |
| 46 | route_list = special.com HOSTIPV4 ; * 127.0.0.1 |
| 47 | self = send |
| 48 | transport = ${if eq {special_tpt}{$local_part} {smtp2}{smtp}} |
| 49 | headers_remove = X-hdr-rtr |
| 50 | headers_add = X-hdr-rtr-new: $h_X-hdr-rtr:+++ |
| 51 | errors_to = "" |
| 52 | no_more |
| 53 | |
| 54 | |
| 55 | # ----- Transports ----- |
| 56 | |
| 57 | begin transports |
| 58 | |
| 59 | smtp: |
| 60 | driver = smtp |
| 61 | interface = HOSTIPV4 |
| 62 | port = PORT_S |
| 63 | headers_add = ${if def:h_X-hdr-rtr {X-hdr-tpt-new: new} {}} |
| 64 | |
| 65 | smtp2: |
| 66 | driver = smtp |
| 67 | interface = HOSTIPV4 |
| 68 | port = PORT_S |
| 69 | |
| 70 | |
| 71 | # End |