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"
|
|
Christoph Galuschka |
d05160 |
send -- "mail from: root@localhost\nrcpt to: root@localhost\ndata\nt_functional test\n.\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ OK"
|
|
Christoph Galuschka |
d05160 |
send -- "quit\n"
|
|
Christoph Galuschka |
d05160 |
expect "221*closing\ connection"
|