Add init method to start the mail service.