| 1 | # Exim test configuration 5800 |
| 2 | # DANE |
| 3 | |
| 4 | SERVER= |
| 5 | |
| 6 | .include DIR/aux-var/std_conf_prefix |
| 7 | |
| 8 | primary_hostname = myhost.test.ex |
| 9 | |
| 10 | # ----- Main settings ----- |
| 11 | |
| 12 | acl_smtp_rcpt = accept |
| 13 | |
| 14 | log_selector = +tls_peerdn |
| 15 | |
| 16 | queue_only |
| 17 | queue_run_in_order |
| 18 | |
| 19 | tls_advertise_hosts = * |
| 20 | # needed to force generation |
| 21 | tls_dhparam = historic |
| 22 | |
| 23 | # Set certificate only if server |
| 24 | |
| 25 | tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} |
| 26 | tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} |
| 27 | |
| 28 | #tls_verify_hosts = * |
| 29 | #tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} |
| 30 | |
| 31 | |
| 32 | # ----- Routers ----- |
| 33 | |
| 34 | begin routers |
| 35 | |
| 36 | client: |
| 37 | driver = accept |
| 38 | condition = ${if eq {SERVER}{server}{no}{yes}} |
| 39 | retry_use_local_part |
| 40 | transport = send_to_server |
| 41 | |
| 42 | server: |
| 43 | driver = redirect |
| 44 | data = :blackhole: |
| 45 | |
| 46 | |
| 47 | # ----- Transports ----- |
| 48 | |
| 49 | begin transports |
| 50 | |
| 51 | send_to_server: |
| 52 | driver = smtp |
| 53 | allow_localhost |
| 54 | hosts = 127.0.0.1 |
| 55 | port = PORT_D |
| 56 | # tls_certificate = DIR/aux-fixed/cert2 |
| 57 | # tls_privatekey = DIR/aux-fixed/cert2 |
| 58 | # tls_verify_certificates = DIR/aux-fixed/cert2 |
| 59 | |
| 60 | |
| 61 | # ----- Retry ----- |
| 62 | |
| 63 | |
| 64 | begin retry |
| 65 | |
| 66 | * * F,5d,10s |
| 67 | |
| 68 | |
| 69 | # End |