copied email module from established config