get mail working - split out config