mail config and oauth simplification