Blob Blame History Raw
#!/usr/bin/expect -f
# Author: Christoph Galuschka <christoph.galuschka@chello.at>

set timeout 1
spawn telnet localhost 25
#match_max 6000
expect "220 *"
send -- "helo localhost\n"
expect -- "250*Hello\ localhost*"
send -- "mail from: root@localhost\n"
expect -- "250\ OK"
send -- "rcpt to: root@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"