Blame tests/p_exim/_helper_exim_ehlo.expect
|
Christoph Galuschka |
d05160 |
#!/usr/bin/expect -f
|
|
Christoph Galuschka |
d05160 |
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
|
|
Christoph Galuschka |
d05160 |
|
|
Christoph Galuschka |
d05160 |
set timeout 1
|
|
Christoph Galuschka |
d05160 |
spawn telnet localhost 25
|
|
Christoph Galuschka |
d05160 |
expect "220 *"
|
|
Christoph Galuschka |
d05160 |
send -- "ehlo localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250-PIPELINING"
|
|
![](https://seccdn.libravatar.org/avatar/3fed47eeecb995a18c3b87f40b917aa8d6099b5b0167a67a603fb98c220e907c?s=16&d=retro) |
5a9020 |
sleep 1
|
|
![](https://seccdn.libravatar.org/avatar/3fed47eeecb995a18c3b87f40b917aa8d6099b5b0167a67a603fb98c220e907c?s=16&d=retro) |
a02188 |
send -- "mail from: root@localhost\nrcpt to: eximtest@localhost\ndata\nt_functional test\n.\n"
|
|
![](https://seccdn.libravatar.org/avatar/3fed47eeecb995a18c3b87f40b917aa8d6099b5b0167a67a603fb98c220e907c?s=16&d=retro) |
27bc61 |
expect -- "250\ OK*"
|
|
Christoph Galuschka |
d05160 |
send -- "quit\n"
|
|
Christoph Galuschka |
d05160 |
expect "221*closing\ connection"
|