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