$ ruby fake_smtp_server
require "net/smtp"
smtp = Net::SMTP.new("localhost", 3555)
# smtp.enable_starttls_auto
smtp.read_timeout = 15
smtp.open_timeout = 15
smtp.set_debug_output $stderr
smtp.start("localhost", "usernam", "pass", :plain) { status = smtp.helo("localhost") }