Run : expect mail.exp mailserver from_address to_address used http://petervibert.com/posts/post/expect-smtp/