| 1 | # Exim test configuration 4600 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | primary_hostname = myhost.test.ex |
| 6 | |
| 7 | # ----- Main settings ----- |
| 8 | |
| 9 | acl_smtp_rcpt = check_rcpt |
| 10 | |
| 11 | begin acl |
| 12 | |
| 13 | check_rcpt: |
| 14 | accept condition = ${if eq {$received_port}{PORT_D}} |
| 15 | spf_guess = pass |
| 16 | logwrite = spf_result $spf_result (guess <$spf_result_guessed>) |
| 17 | logwrite = spf_header_comment $spf_header_comment |
| 18 | logwrite = spf_smtp_comment $spf_smtp_comment |
| 19 | logwrite = spf_received $spf_received |
| 20 | logwrite = ${authresults {$primary_hostname}} |
| 21 | |
| 22 | accept condition = ${if eq {$received_port}{PORT_S}} |
| 23 | spf = pass : softfail : neutral : none |
| 24 | logwrite = spf_result $spf_result |
| 25 | logwrite = spf_header_comment $spf_header_comment |
| 26 | logwrite = spf_smtp_comment $spf_smtp_comment |
| 27 | logwrite = spf_received $spf_received |
| 28 | logwrite = ${authresults {$primary_hostname}} |
| 29 | |
| 30 | deny |
| 31 | logwrite = spf_result $spf_result (guess <$spf_result_guessed>) |
| 32 | logwrite = spf_header_comment $spf_header_comment |
| 33 | logwrite = spf_smtp_comment $spf_smtp_comment |
| 34 | logwrite = spf_received $spf_received |
| 35 | logwrite = ${authresults {$primary_hostname}} |
| 36 | |
| 37 | # End |