Blame tests/p_exim/_helper_exim_helo.expect
|
Christoph Galuschka |
d05160 |
#!/usr/bin/expect -f
|
|
![](https://seccdn.libravatar.org/avatar/3fed47eeecb995a18c3b87f40b917aa8d6099b5b0167a67a603fb98c220e907c?s=16&d=retro) |
e0746c |
# Author: Christoph Galuschka <tigalch@tigalch.org>
|
|
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 -- "helo localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250*Hello\ localhost*"
|
|
![](https://seccdn.libravatar.org/avatar/3fed47eeecb995a18c3b87f40b917aa8d6099b5b0167a67a603fb98c220e907c?s=16&d=retro) |
8bc504 |
sleep 1
|
|
Christoph Galuschka |
d05160 |
send -- "mail from: root@localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ OK"
|
|
![](https://seccdn.libravatar.org/avatar/3fed47eeecb995a18c3b87f40b917aa8d6099b5b0167a67a603fb98c220e907c?s=16&d=retro) |
65efe1 |
send -- "rcpt to: eximtest@localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ Accepted"
|
|
Christoph Galuschka |
d05160 |
send -- "data\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "354*"
|
|
Christoph Galuschka |
d05160 |
send -- "t_functional test\n.\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ OK*"
|
|
Christoph Galuschka |
d05160 |
send -- "quit\n"
|
|
Christoph Galuschka |
d05160 |
expect "221*closing\ connection"
|