only load smtp config if not in test.