| 1 | # Exim test configuration 0102 |
| 2 | |
| 3 | exim_path = EXIM_PATH |
| 4 | host_lookup_order = bydns |
| 5 | spool_directory = DIR/spool |
| 6 | log_file_path = DIR/spool/log/%slog |
| 7 | gecos_pattern = "" |
| 8 | gecos_name = CALLER_NAME |
| 9 | |
| 10 | # ----- Main settings ----- |
| 11 | |
| 12 | domainlist local_domains = test.ex |
| 13 | |
| 14 | qualify_domain = test.ex |
| 15 | |
| 16 | |
| 17 | # ----- Routers ----- |
| 18 | |
| 19 | begin routers |
| 20 | |
| 21 | batch: |
| 22 | driver = accept |
| 23 | local_part_prefix = batch- |
| 24 | retry_use_local_part |
| 25 | transport = batch_bsmtp1 |
| 26 | |
| 27 | localuser: |
| 28 | driver = accept |
| 29 | local_part_prefix = bsmtp_ : mmdf_ |
| 30 | local_part_prefix_optional |
| 31 | retry_use_local_part |
| 32 | transport = ${local_part_prefix}local_delivery |
| 33 | |
| 34 | |
| 35 | # ----- Transports ----- |
| 36 | |
| 37 | begin transports |
| 38 | |
| 39 | local_delivery: |
| 40 | driver = appendfile |
| 41 | delivery_date_add |
| 42 | envelope_to_add |
| 43 | file = DIR/test-mail/$local_part |
| 44 | file_format = "From : local_delivery :\ |
| 45 | MAIL : bsmtp_local_delivery :\ |
| 46 | \1\1\1\1\n : mmdf_local_delivery :\ |
| 47 | tpmissing : tpmissing" |
| 48 | return_path_add |
| 49 | user = CALLER |
| 50 | |
| 51 | bsmtp_local_delivery: |
| 52 | driver = appendfile |
| 53 | batch_max = 100 |
| 54 | use_bsmtp |
| 55 | delivery_date_add |
| 56 | envelope_to_add |
| 57 | file = DIR/test-mail/$local_part |
| 58 | return_path_add |
| 59 | user = CALLER |
| 60 | |
| 61 | mmdf_local_delivery: |
| 62 | driver = appendfile |
| 63 | check_string = "\1\1\1\1\n" |
| 64 | escape_string = "\1\1\1\1 \n" |
| 65 | file = DIR/test-mail/$local_part |
| 66 | message_prefix = "\1\1\1\1\n" |
| 67 | message_suffix = "\1\1\1\1\n" |
| 68 | user = CALLER |
| 69 | |
| 70 | batch_bsmtp1: |
| 71 | driver = appendfile |
| 72 | batch_max = 100 |
| 73 | use_bsmtp |
| 74 | file = DIR/test-mail/batched |
| 75 | file_format = "MAIL : batch_bsmtp2" |
| 76 | user = CALLER |
| 77 | |
| 78 | batch_bsmtp2: |
| 79 | driver = appendfile |
| 80 | batch_max = 100 |
| 81 | use_bsmtp |
| 82 | file = DIR/test-mail/batched |
| 83 | user = CALLER |
| 84 | |
| 85 | # ----- Retry ----- |
| 86 | |
| 87 | begin retry |
| 88 | |
| 89 | * * F,2d,2d |
| 90 | |
| 91 | # End |