finish the smtp server and reconstruction