<def-group>
  <definition class="compliance" id="mail_log_enabled"
  version="1">
    <metadata>
      <title>SMTP Logging Enabled</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>The system syslog service must log informational and more severe SMTP service messages.</description>
    </metadata>
    <criteria>
		<criterion comment="Check mail in /etc/syslog.conf"
		test_ref="test_mail_log_enabled" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="mail in /etc/syslog.conf should be set correctly"
  id="test_mail_log_enabled" version="1">
    <ind:object object_ref="obj_mail_log_enabled" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="mail in /etc/syslog.conf should be set correctly"
  id="obj_mail_log_enabled" version="1">
    <ind:path>/etc</ind:path>
    <ind:filename>syslog.conf</ind:filename>
    <ind:pattern operation="pattern match">^[\s]*(mail\.\*|mail\.crit)</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
