This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
set timeout 10 | |
#spawn telnet localhost 587 | |
spawn telnet localhost 25 | |
expect "Debian" | |
send "HELO jitaku\n" | |
expect "250" | |
send "MAIL FROM: from@hoge.com\n" | |
expect "250" | |
send "RCPT TO: to@hoge.net\n" | |
expect "250" | |
send "DATA\n" | |
expect "354" | |
send "test mail!\n" | |
send ".\n" | |
expect "250" | |
send "QUIT\n" | |
interact |
0 件のコメント:
コメントを投稿