| 1 | # SMTP synchronization checks before sending responses |
| 2 | need_ipv4 |
| 3 | # |
| 4 | exim -DSERVER=server -DACL_PREDATA=check_predata -bd -oX PORT_D |
| 5 | **** |
| 6 | # The pause (+++ 1) in the middle of this is so that there is no pending |
| 7 | # input when DATA is received, but we start sending the data itself too |
| 8 | # early (the server will be waiting 2 seconds in the predata ACL). |
| 9 | # |
| 10 | client -t5 127.0.0.1 PORT_D |
| 11 | ??? 220 |
| 12 | ehlo abcd |
| 13 | ??? 250- |
| 14 | ??? 250- |
| 15 | ??? 250- |
| 16 | ??? 250- |
| 17 | ??? 250 |
| 18 | rset\r\nmail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata |
| 19 | +++ 1 |
| 20 | Start: sent early ... |
| 21 | ??? 250 |
| 22 | ??? 250 |
| 23 | ??? 250 |
| 24 | ??? 554 |
| 25 | **** |
| 26 | sleep 1 |
| 27 | killdaemon |
| 28 | # This time turn off pipelining to check MAIL and RCPT |
| 29 | exim -DSERVER=server -DACL_MAIL=check_mail -DACL_RCPT=check_rcpt -DPAH= \ |
| 30 | -bd -oX PORT_D |
| 31 | **** |
| 32 | client -t5 127.0.0.1 PORT_D |
| 33 | ??? 220 |
| 34 | ehlo abcd |
| 35 | ??? 250- |
| 36 | ??? 250- |
| 37 | ??? 250- |
| 38 | ??? 250 |
| 39 | mail from:<userx@test.ex> |
| 40 | +++ 1 |
| 41 | rcpt to:<userx@test.ex> |
| 42 | ??? 554 |
| 43 | **** |
| 44 | client -t5 127.0.0.1 PORT_D |
| 45 | ??? 220 |
| 46 | ehlo abcd |
| 47 | ??? 250- |
| 48 | ??? 250- |
| 49 | ??? 250- |
| 50 | ??? 250 |
| 51 | mail from:<userx@test.ex> |
| 52 | ??? 250 |
| 53 | rcpt to:<userx@test.ex> |
| 54 | +++ 1 |
| 55 | data |
| 56 | ??? 554 |
| 57 | **** |
| 58 | killdaemon |