<!-- @(#) $Id$
  -  Example of MS Exchange rules for OSSEC.
  -
  -  Copyright (C) 2009 Trend Micro Inc.
  -  All rights reserved.
  -
  -  This program is a free software; you can redistribute it
  -  and/or modify it under the terms of the GNU General Public
  -  License (version 2) as published by the FSF - Free Software
  -  Foundation.
  -
  -  License details: http://www.ossec.net/en/licensing.html
  -->


<!-- Still BETA - anyone using it? -->


<group name="ms,exchange,">
  <rule id="3800" level="0">
    <decoded_as>msexchange</decoded_as>
    <description>Grouping of Exchange rules.</description>
  </rule>

  <rule id="3801" level="4">
    <if_sid>3800</if_sid>
    <action>RCPT</action>
    <id>^550</id>
    <description>E-mail rcpt is not valid (invalid account).</description>
    <group>spam,</group>
  </rule>
  
  <rule id="3802" level="4">
    <if_sid>3800</if_sid>
    <id>^5</id>
    <description>E-mail 500 error code.</description>
    <group>spam,</group>
  </rule>

  <rule id="3851" level="9" frequency="10" timeframe="120" ignore="120">
    <if_matched_sid>3801</if_matched_sid>
    <same_source_ip />
    <description>Multiple e-mail attempts to an invalid account.</description>
    <group>multiple_spam,</group>
  </rule>
  
  <rule id="3852" level="9" frequency="12" timeframe="120" ignore="240">
    <if_matched_sid>3802</if_matched_sid>
    <same_source_ip />
    <description>Multiple e-mail 500 error code (spam).</description>
    <group>multiple_spam,</group>
  </rule>
  

</group> <!-- MS,Exchange -->
