fixed mail config bug