<def-group oval_version="5.11">
  <definition class="compliance" id="dovecot_enable_ssl" version="1">
    {{{ oval_metadata("SSL capabilities should be enabled for the mail server.") }}}
    <criteria comment="Enable SSL in Dovecot" operator="OR">
      <extend_definition comment="dovecot service is disabled" definition_ref="service_dovecot_disabled" />
      <criterion test_ref="test_dovecot_enable_ssl" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Tests the value of the ssl[\s]*(&lt;:nocomment:&gt;*) setting in the /etc/dovecot.conf file"
  id="test_dovecot_enable_ssl" version="1">
    <ind:object object_ref="obj_dovecot_enable_ssl" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_dovecot_enable_ssl" version="1">
    <ind:filepath>/etc/dovecot/conf.d/10-ssl.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*ssl[\s]*=[\s]*(yes|required)[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
