forked from schampeo/EnemieslistM4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EL_Check_Header_DateWarning.m4
34 lines (27 loc) · 1.04 KB
/
EL_Check_Header_DateWarning.m4
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
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_DateWarning.m4,v 1.15 2011/05/17 19:09:59 schampeo Exp $')
divert(-1)dnl
LOCAL_RULESETS
#------------------------------------------------------------------------
# enemieslist.com Date-Warning header checks
#------------------------------------------------------------------------
HDate-warning: $>EL_Check_Header_DateWarning
SEL_Check_Header_DateWarning
ifdef(`_EL_TRACE', `dnl
R$* $: $1 $(EL_Log "DateWarning 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$* $#error $@ 5.7.1 $: ifdef(`confEL_ErrDateWarning', `confEL_ErrDateWarning', `"554 BADDATW Contact "$&{ELContactEmail}" if this is in error, but your message was rejected as spam (invalid Date header)."')