You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
453 B
20 lines
453 B
12 months ago
|
#!/usr/bin/expect -f
|
||
|
# Author: Christoph Galuschka <tigalch@tigalch.org>
|
||
|
|
||
|
set timeout 1
|
||
|
spawn telnet localhost 25
|
||
|
expect "220 *"
|
||
|
send -- "ehlo localhost\n"
|
||
|
expect -- "250-PIPELINING"
|
||
|
sleep 1
|
||
|
send -- "mail from: root@localhost\n"
|
||
|
expect -- "250\ OK"
|
||
|
send -- "rcpt to: eximtest@localhost\n"
|
||
|
expect -- "250\ Accepted"
|
||
|
send -- "data\n"
|
||
|
expect -- "354*"
|
||
|
send -- "t_functional test\n.\n"
|
||
|
expect -- "250\ OK*"
|
||
|
send -- "quit\n"
|
||
|
expect "221*closing\ connection"
|