| 1 | # Exim test configuration 3401 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | log_selector = +smtp_mailauth |
| 6 | primary_hostname = myhost.test.ex |
| 7 | |
| 8 | # ----- Main settings ----- |
| 9 | |
| 10 | acl_smtp_rcpt = accept |
| 11 | |
| 12 | |
| 13 | # ----- Authentication ----- |
| 14 | |
| 15 | begin authenticators |
| 16 | |
| 17 | login: |
| 18 | driver = plaintext |
| 19 | public_name = LOGIN |
| 20 | client_send = : userx : secret |
| 21 | client_set_id = userx |
| 22 | |
| 23 | plain: |
| 24 | driver = plaintext |
| 25 | public_name = PLAIN |
| 26 | client_send = ^userx^secret |
| 27 | |
| 28 | xlogin: |
| 29 | driver = plaintext |
| 30 | public_name = XLOGIN |
| 31 | client_send = : $auth1 : $auth1+$auth2 |
| 32 | client_set_id = $auth1 |
| 33 | |
| 34 | |
| 35 | # ----- Routers ----- |
| 36 | |
| 37 | begin routers |
| 38 | |
| 39 | try: |
| 40 | driver = manualroute |
| 41 | route_list = domain.com 127.0.0.1 byname |
| 42 | self = send |
| 43 | transport = smtp_try |
| 44 | |
| 45 | force: |
| 46 | driver = manualroute |
| 47 | route_list = authdomain.com 127.0.0.1 byname |
| 48 | self = send |
| 49 | transport = smtp_force |
| 50 | |
| 51 | |
| 52 | # ----- Transports ----- |
| 53 | |
| 54 | begin transports |
| 55 | |
| 56 | smtp_try: |
| 57 | driver = smtp |
| 58 | hosts_try_auth = * |
| 59 | port = PORT_S |
| 60 | authenticated_sender = ${if eq{$local_part}{forcesender}{force@x.y.z}fail} |
| 61 | |
| 62 | smtp_force: |
| 63 | driver = smtp |
| 64 | hosts_require_auth = * |
| 65 | port = PORT_S |
| 66 | |
| 67 | |
| 68 | # ----- Retry ----- |
| 69 | |
| 70 | |
| 71 | begin retry |
| 72 | |
| 73 | * auth_failed |
| 74 | * * F,1h,10m |
| 75 | |
| 76 | # End |