move mail config to external file