docs: def get_server_setting(settings, server=_DEFAULT_SERVER):
      '''
      Get the value of the setting for the SMTP virtual server.
  
      :param str settings: A list of the setting names.
      :param str server: The SMTP server name.
  
      :return: A dictionary of the provided settings and their values.
      :rtype: dict
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' win_smtp_server.get_server_setting settings="['MaxRecipients']"
      '''
      ret = dict()
  
      if not settings:
          _LOG.warning('No settings provided.')
          return ret
  
      with salt.utils.winapi.Com():
          try:
              connection = wmi.WMI(namespace=_WMI_NAMESPACE)
              objs = connection.IIsSmtpServerSetting(settings, Name=server)[0]
  
              for setting in settings:
                  ret[setting] = six.text_type(getattr(objs, setting))
          except wmi.x_wmi as error:
              _LOG.error('Encountered WMI error: %s', error.com_error)
          except (AttributeError, IndexError) as error:
              _LOG.error('Error getting IIsSmtpServerSetting: %s', error)
      return ret