<def-group>
  <definition class="compliance" id="postfix_server_banner" version="1">
    <metadata>
      <title>Configure Postfix Against Unnecessary Release of Information</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Protect against unnecessary release of information.</description>
      <reference source="MED" ref_id="20130819" ref_url="test_attestation" />
    </metadata>
    <criteria operator="AND">
      <criterion comment="Limit release of information" test_ref="test_postfix_server_banner" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Set banner" id="test_postfix_server_banner" version="1">
    <ind:object object_ref="obj_postfix_server_banner" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_postfix_server_banner" version="1">
    <ind:filepath>/etc/postfix/main.cf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*smtpd_banner[\s]*=[\s]*\$myhostname[\s]+ESMTP[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
