You need to telnet to the IP of the desired SMTP server, provide the proper authorization, then you can enter the commands.