fixing mail config