| 1 | # acl condition and variables |
| 2 | # |
| 3 | # It is rather difficult to properly test spf. We use libspf2 to do the work, and it |
| 4 | # does the DNS lookups, so we cannot intercept them in the testsuite's usual fashion |
| 5 | # to provide values for testcases. |
| 6 | # |
| 7 | # For now just check that what should be working syntax does not cause us to fall over. |
| 8 | # Be careful with envelope-domains and IPs used for testcases, as real DNS lookups will be done. |
| 9 | # |
| 10 | exim -bd -DSERVER=server -oX PORT_D:PORT_S |
| 11 | **** |
| 12 | client 127.0.0.1 PORT_D |
| 13 | ??? 220 |
| 14 | helo testclient |
| 15 | ??? 250 |
| 16 | mail from:<a@example.com> |
| 17 | ??? 250 |
| 18 | rcpt to:<fred@test.ex> |
| 19 | ??? 250 |
| 20 | quit |
| 21 | **** |
| 22 | client 127.0.0.1 PORT_D |
| 23 | ??? 220 |
| 24 | helo testclient |
| 25 | ??? 250 |
| 26 | mail from:<b@test.example.com> |
| 27 | ??? 250 |
| 28 | rcpt to:<fred@test.ex> |
| 29 | ??? 250 |
| 30 | quit |
| 31 | **** |
| 32 | client 127.0.0.1 PORT_S |
| 33 | ??? 220 |
| 34 | helo testclient |
| 35 | ??? 250 |
| 36 | mail from:<c@example.com> |
| 37 | ??? 250 |
| 38 | rcpt to:<fred@test.ex> |
| 39 | ??? 250 |
| 40 | quit |
| 41 | **** |
| 42 | # |
| 43 | killdaemon |