Your turn, there are other commands that can be used such as EXPN, RCPT. Enhance the above script to include all these commands to avoid restricted commands that might you face. More SMTP commands are listed here.
SMTP open relay abuse
SMTP not protected by authentication can be abused to send emails from anyone: