- #10324: instalacija
[ossec-hids.git] / etc / rules / postfix_rules.xml
1 <!-- @(#) $Id: postfix_rules.xml,v 1.17 2008/04/21 17:32:11 dcid Exp $
2   -  Official postfix rules for OSSEC.
3   -  Author: Ahmet Ozturk
4   -  Author: Daniel B. Cid
5   -  License: http://www.ossec.net/en/licensing.html
6   -->
7
8 <var name="POSTFIX_FREQ">6</var>      
9
10 <group name="syslog,postfix,">
11   <rule id="3300" level="0">
12     <decoded_as>postfix-reject</decoded_as>
13     <description>Grouping of the postfix reject rules.</description>
14   </rule>
15   
16   <rule id="3301" level="6">
17     <if_sid>3300</if_sid>
18     <id>^554$</id>
19     <description>Attempt to use mail server as relay </description>
20     <description>(client host rejected).</description>
21     <group>spam,</group>
22   </rule>
23
24   <rule id="3302" level="6">
25     <if_sid>3300</if_sid>
26     <id>^550$</id>
27     <description>Rejected by access list </description>
28     <description>(Requested action not taken).</description>
29     <group>spam,</group>
30   </rule>
31
32   <rule id="3303" level="5">
33     <if_sid>3300</if_sid>
34     <id>^450$</id>
35     <description>Sender domain is not found </description>
36     <description>(450: Requested mail action not taken).</description>
37     <group>spam,</group>
38   </rule>
39
40   <rule id="3304" level="5">
41     <if_sid>3300</if_sid>
42     <id>^503$</id>
43     <description>Improper use of SMTP command pipelining </description>
44     <description>(503: Bad sequence of commands).</description>
45     <group>spam,</group>
46   </rule>
47   
48   <rule id="3305" level="5">
49     <if_sid>3300</if_sid>
50     <id>^504$</id>
51     <description>Receipent address must contain FQDN </description>
52     <description>(504: Command parameter not implemented).</description>
53     <group>spam,</group>
54   </rule>
55   
56   <rule id="3306" level="6">
57     <if_sid>3301, 3302</if_sid>
58     <match> blocked using </match>
59     <description>IP Address black-listed by anti-spam (blocked).</description>
60     <group>spam,</group>
61   </rule>
62   
63   <rule id="3320" level="0">
64     <decoded_as>postfix</decoded_as>
65     <description>Grouping of the postfix rules.</description>
66   </rule>
67
68   <rule id="3330" level="10" ignore="240">
69     <if_sid>3320</if_sid>
70     <match>defer service failure|Resource temporarily unavailable|</match>
71     <match>^fatal: the Postfix mail system is not running</match>
72     <description>Postfix process error.</description>
73     <group>service_availability,</group>
74   </rule>
75
76   <rule id="3332" level="5">
77     <if_sid>3320</if_sid>
78     <match> authentication failed</match>
79     <description>Postfix SASL authentication failure.</description>
80     <group>authentication_failed,</group>
81   </rule>
82
83   <rule id="3331" level="10" ignore="120">
84     <if_sid>3300</if_sid>
85     <id>^452</id>
86     <description>Postfix insufficient disk space error.</description>
87     <group>service_availability,</group>
88   </rule>
89             
90   <rule id="3351" level="6" frequency="$POSTFIX_FREQ" timeframe="90">
91     <if_matched_sid>3301</if_matched_sid>
92     <same_source_ip />
93     <description>Multiple relaying attempts of spam.</description>
94     <group>multiple_spam,</group>
95   </rule>
96
97   <rule id="3352" level="6" frequency="$POSTFIX_FREQ" timeframe="120">
98     <if_matched_sid>3302</if_matched_sid>
99     <same_source_ip />
100     <description>Multiple attempts to send e-mail from a </description>
101     <description>rejected sender IP (access).</description>
102     <group>multiple_spam,</group>
103   </rule>
104
105   <rule id="3353" level="10" frequency="$POSTFIX_FREQ" timeframe="120">
106     <if_matched_sid>3303</if_matched_sid>
107     <same_source_ip />
108     <description>Multiple attempts to send e-mail from </description>
109     <description>invalid/unknown sender domain.</description>
110     <group>multiple_spam,</group>
111   </rule>
112
113   <rule id="3354" level="12" frequency="$POSTFIX_FREQ" timeframe="120">
114     <if_matched_sid>3304</if_matched_sid>
115     <same_source_ip />
116     <description>Multiple misuse of SMTP service </description>
117     <description>(bad sequence of commands).</description>
118     <group>multiple_spam,</group>
119   </rule>
120
121   <rule id="3355" level="10" frequency="$POSTFIX_FREQ" timeframe="120">
122     <if_matched_sid>3305</if_matched_sid>
123     <same_source_ip />
124     <description>Multiple attempts to send e-mail to </description>
125     <description>invalid recipient or from unknown sender domain.</description>
126     <group>multiple_spam,</group>
127   </rule>
128
129   <rule id="3356" level="10" frequency="$POSTFIX_FREQ" timeframe="120" ignore="30">
130     <if_matched_sid>3306</if_matched_sid>
131     <same_source_ip />
132     <description>Multiple attempts to send e-mail from </description>
133     <description>black-listed IP address (blocked).</description>
134     <group>multiple_spam,</group>
135   </rule>
136
137   <rule id="3357" level="10" frequency="6" timeframe="120" ignore="60">
138     <if_matched_sid>3332</if_matched_sid>
139     <same_source_ip />
140     <description>Multiple SASL authentication failures.</description>
141     <group>authentication_failures,</group>
142   </rule>
143
144   <rule id="3390" level="0">
145     <match>^clamsmtpd: </match>
146     <description>Grouping of the clamsmtpd rules.</description>
147   </rule>
148 </group> <!-- SYSLOG,POSTFIX -->