put mail related config into env