modify email config for production mode