swaks is fantastic PERL script: you can do things like swaks -t jsmith@uk.company.com -s mailserver -q RCPT -f jsmith@uk.company.com …and it logs the IO on screen. There is a changelog for it here.