-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEL_Check_Header_ContentID.m4
More file actions
48 lines (37 loc) · 1.79 KB
/
EL_Check_Header_ContentID.m4
File metadata and controls
48 lines (37 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
divert(-1)dnl
#
# Copyright (c) 2004-2011 hesketh.com/inc. All rights reserved.
# See the file LICENSE in the distribution for details.
#
# questions? <[email protected]>
#
divert(0)dnl
VERSIONID(`$Id: EL_Check_Header_ContentID.m4,v 1.17 2011/05/17 19:15:49 schampeo Exp $')
divert(-1)dnl
LOCAL_CONFIG
#------------------------------------------------------------------------
# enemieslist.com Content-Id: header check patterns and call
#------------------------------------------------------------------------
HContent-Id: $>EL_Check_Header_ContentID
KEL_ContentIdVirus regex -a@VIRUS ^.*<[a-z]+>$
KEL_ContentIdPillPushers regex -a<MATCH> ^\ ?[a-z]{19}$
KEL_ContentIdChecks sequence EL_ContentIdVirus
LOCAL_RULESETS
#------------------------------------------------------------------------
# enemieslist.com Content-ID header checks
#------------------------------------------------------------------------
SEL_Check_Header_ContentID
ifdef(`_EL_TRACE', `dnl
R$* $: $1 $(EL_Log "ContentID w/ " $1 "; score: " $&{ELSuspiciousCount} "." $)
')dnl
ifdef(`_EL_SKIPLOCAL', `dnl
R$* $: $1 $| $&{client_addr}
R$* $| 127.0.0.1 $@
')dnl
# skip whitelisted hosts
R$* $: $&{ELWhitelisted}
R$+:$+ $@
R$* $: $(EL_ContentIdChecks $&{currHeader} $)
R@VIRUS $#error $@ 5.7.1 $: ifdef(`confEL_ErrContentID', `confEL_ErrContentID', `"554 BDHDCID Contact "$&{ELContactEmail}" if this is in error, but your message was rejected as a possible virus; it contains a suspicious header (Content-Id)."')
R$* $: $(EL_ContentIdPillPushers $&{currHeader} $) $| $&{INHEADERS}
R<MATCH> $| NO $#error $@ 5.7.1 $: ifdef(`confEL_ErrContentIDSpam', `confEL_ErrContentIDSpam', `"554 BHDCIDS Contact "$&{ELContactEmail}" if this is in error, but your message was rejected as a probable spam; it contains a suspicious header."')