| 1 | # Exim test configuration 0495 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | primary_hostname = myhost.test.ex |
| 6 | |
| 7 | # ----- Main settings ----- |
| 8 | |
| 9 | acl_smtp_rcpt = check_rcpt |
| 10 | mua_wrapper = TRUE |
| 11 | trusted_users = CALLER |
| 12 | |
| 13 | # These settings should be ignored |
| 14 | |
| 15 | queue_only |
| 16 | queue_smtp_domains = * |
| 17 | deliver_drop_privilege = FALSE |
| 18 | remote_max_parallel = 5 |
| 19 | |
| 20 | |
| 21 | # ----- ACL ----- |
| 22 | |
| 23 | begin acl |
| 24 | |
| 25 | # The controls will be ignored |
| 26 | |
| 27 | check_rcpt: |
| 28 | accept control = queue_only |
| 29 | control = freeze |
| 30 | |
| 31 | |
| 32 | # ----- Routers ----- |
| 33 | |
| 34 | begin routers |
| 35 | |
| 36 | r1: |
| 37 | driver = redirect |
| 38 | data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} |
| 39 | file_transport = t3 |
| 40 | allow_fail |
| 41 | allow_defer |
| 42 | |
| 43 | r2: |
| 44 | driver = accept |
| 45 | local_parts = otherhost |
| 46 | transport = t2 |
| 47 | |
| 48 | r3: |
| 49 | driver = accept |
| 50 | local_parts = ^badport |
| 51 | transport = t4 |
| 52 | |
| 53 | r9: |
| 54 | driver = accept |
| 55 | transport = t1 |
| 56 | headers_add = ${if eq{$local_part}{addheader}{Added: text}} |
| 57 | |
| 58 | |
| 59 | # ----- Transports ----- |
| 60 | |
| 61 | begin transports |
| 62 | |
| 63 | t1: |
| 64 | driver = smtp |
| 65 | hosts = 127.0.0.1 : HOSTIPV4 |
| 66 | port = PORT_S |
| 67 | hosts_try_fastopen = : |
| 68 | allow_localhost |
| 69 | command_timeout = 1s |
| 70 | |
| 71 | t2: |
| 72 | driver = smtp |
| 73 | hosts = V4NET.9.8.7 |
| 74 | port = PORT_S |
| 75 | hosts_try_fastopen = : |
| 76 | |
| 77 | t3: |
| 78 | driver = appendfile |
| 79 | file = DIR/test-mail/${bless:$local_part} |
| 80 | user = CALLER |
| 81 | |
| 82 | t4: |
| 83 | driver = smtp |
| 84 | hosts = V4NET.10.10.10 |
| 85 | port = nonexistent |
| 86 | hosts_try_fastopen = : |
| 87 | |
| 88 | # End |