SMTP-SERVER: SMTP Server implementation and algorithm fixes