How does the SMTP protocol handle mail transfer, and what are the standard port numbers associated with secure and insecure mail submission?