Move email configuration to a yaml file