| 1 | # Exim test configuration 3410 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | primary_hostname = myhost.test.ex |
| 6 | |
| 7 | # ----- Main settings ----- |
| 8 | |
| 9 | # Use first three components of address to select ACL |
| 10 | acl_smtp_rcpt = acl_${sg{${tr{$sender_host_address}{.}{_}}}{^(.*)_.*\$}{\$1}} |
| 11 | |
| 12 | # ----- ACLs ----- |
| 13 | |
| 14 | begin acl |
| 15 | |
| 16 | # These ones test defers |
| 17 | |
| 18 | acl_5_6_9: |
| 19 | accept endpass |
| 20 | message = You must authenticate |
| 21 | authenticated = * |
| 22 | |
| 23 | acl_5_6_10: |
| 24 | accept authenticated = auth1 |
| 25 | |
| 26 | |
| 27 | # ------ Authenticators ---- |
| 28 | |
| 29 | begin authenticators |
| 30 | |
| 31 | auth1: |
| 32 | driver = plaintext |
| 33 | public_name = PLAIN |
| 34 | server_condition = ${if eq {$3}{secret}{yes}{no}} |
| 35 | |
| 36 | auth2: |
| 37 | driver = plaintext |
| 38 | public_name = LOGIN |
| 39 | server_prompts = "User Name : Password " |
| 40 | server_condition = ${if eq {$2}{secret}{yes}{no}} |
| 41 | |
| 42 | |
| 43 | # End |