| 1 | # Exim test configuration 2009 |
| 2 | |
| 3 | SERVER = |
| 4 | |
| 5 | exim_path = EXIM_PATH |
| 6 | host_lookup_order = bydns |
| 7 | primary_hostname = myhost.test.ex |
| 8 | spool_directory = DIR/spool |
| 9 | log_file_path = DIR/spool/log/SERVER%slog |
| 10 | gecos_pattern = "" |
| 11 | gecos_name = CALLER_NAME |
| 12 | |
| 13 | # ----- Main settings ----- |
| 14 | |
| 15 | acl_smtp_rcpt = check_recipient |
| 16 | hostlist tls_hosts = 127.0.0.1 |
| 17 | |
| 18 | queue_only |
| 19 | queue_run_in_order |
| 20 | |
| 21 | tls_advertise_hosts = * |
| 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 | |
| 29 | |
| 30 | # ----- ACL ----- |
| 31 | |
| 32 | begin acl |
| 33 | |
| 34 | check_recipient: |
| 35 | deny hosts = +tls_hosts |
| 36 | message = encryption required |
| 37 | !encrypted = * |
| 38 | accept domains = +local_domains |
| 39 | deny message = relay not permitted |
| 40 | |
| 41 | |
| 42 | # ----- Routers ----- |
| 43 | |
| 44 | begin routers |
| 45 | |
| 46 | client: |
| 47 | driver = accept |
| 48 | condition = ${if eq {SERVER}{server}{no}{yes}} |
| 49 | retry_use_local_part |
| 50 | transport = send_to_server |
| 51 | |
| 52 | |
| 53 | # ----- Transports ----- |
| 54 | |
| 55 | begin transports |
| 56 | |
| 57 | send_to_server: |
| 58 | driver = smtp |
| 59 | allow_localhost |
| 60 | hosts = 127.0.0.1 |
| 61 | hosts_avoid_tls = 127.0.0.1 |
| 62 | port = PORT_D |
| 63 | |
| 64 | # End |