Mail config with environment variables