Implementation of a mail server