| 1 | # Exim test configuration 0365 |
| 2 | |
| 3 | DETAILS=false |
| 4 | SELECTOR= |
| 5 | |
| 6 | .include DIR/aux-var/std_conf_prefix |
| 7 | |
| 8 | |
| 9 | # ----- Main settings ----- |
| 10 | |
| 11 | acl_smtp_data = acl_data |
| 12 | acl_smtp_rcpt = acl_rcpt |
| 13 | log_selector = SELECTOR |
| 14 | qualify_domain = test.ex |
| 15 | queue_run_in_order |
| 16 | smtp_return_error_details = DETAILS |
| 17 | trusted_users = CALLER |
| 18 | |
| 19 | |
| 20 | # ----- ACL ----- |
| 21 | |
| 22 | begin acl |
| 23 | |
| 24 | acl_data: |
| 25 | accept senders = ^nosyntax@ |
| 26 | verify = header_sender |
| 27 | |
| 28 | accept senders = !^nosyntax@ |
| 29 | verify = header_syntax |
| 30 | verify = header_sender |
| 31 | |
| 32 | |
| 33 | acl_rcpt: |
| 34 | accept local_parts = ^cantverify |
| 35 | endpass |
| 36 | verify = recipient |
| 37 | |
| 38 | accept senders = ^nosyntax@ |
| 39 | |
| 40 | accept senders = ^recipcallout@ |
| 41 | endpass |
| 42 | verify = recipient/callout=1s |
| 43 | |
| 44 | accept verify = sender/callout=1s |
| 45 | |
| 46 | |
| 47 | # ----- Routers ----- |
| 48 | |
| 49 | begin routers |
| 50 | |
| 51 | verify: |
| 52 | driver = accept |
| 53 | transport = smtp |
| 54 | local_parts = ok |
| 55 | |
| 56 | callout: |
| 57 | driver = manualroute |
| 58 | transport = smtp |
| 59 | local_parts = callout |
| 60 | route_data = V4NET.0.0.0 |
| 61 | |
| 62 | foo: |
| 63 | driver = redirect |
| 64 | local_parts = ^cantverify |
| 65 | data = newname |
| 66 | |
| 67 | test: |
| 68 | driver = redirect |
| 69 | local_parts = newname |
| 70 | data = ${if match{$original_local_part}{fail}\ |
| 71 | {:fail: failure message}\ |
| 72 | {:defer: defer message}} |
| 73 | allow_fail |
| 74 | allow_defer |
| 75 | |
| 76 | |
| 77 | |
| 78 | # ----- Transports ----- |
| 79 | |
| 80 | begin transports |
| 81 | |
| 82 | smtp: |
| 83 | driver = smtp |
| 84 | hosts_try_fastopen = : |
| 85 | |
| 86 | # End |