move mail config into separate file