Fix mock smtp server issue