1
# SpamAssassin - DKIM rules
3
# Please don't modify this file as your changes will be overwritten with
4
# the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead.
5
# See 'perldoc Mail::SpamAssassin::Conf' for details.
8
# Licensed to the Apache Software Foundation (ASF) under one or more
9
# contributor license agreements. See the NOTICE file distributed with
10
# this work for additional information regarding copyright ownership.
11
# The ASF licenses this file to you under the Apache License, Version 2.0
12
# (the "License"); you may not use this file except in compliance with
13
# the License. You may obtain a copy of the License at:
15
# http://www.apache.org/licenses/LICENSE-2.0
17
# Unless required by applicable law or agreed to in writing, software
18
# distributed under the License is distributed on an "AS IS" BASIS,
19
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
# See the License for the specific language governing permissions and
21
# limitations under the License.
24
###########################################################################
26
# Requires the Mail::SpamAssassin::Plugin::DKIM plugin be loaded.
28
ifplugin Mail::SpamAssassin::Plugin::DKIM
30
full DKIM_SIGNED eval:check_dkim_signed()
31
full DKIM_VALID eval:check_dkim_valid()
32
full DKIM_VALID_AU eval:check_dkim_valid_author_sig()
33
full __DKIM_DEPENDABLE eval:check_dkim_dependable()
35
header DKIM_ADSP_NXDOMAIN eval:check_dkim_adsp('N')
36
header DKIM_ADSP_DISCARD eval:check_dkim_adsp('D')
37
header DKIM_ADSP_ALL eval:check_dkim_adsp('A')
38
header DKIM_ADSP_CUSTOM_LOW eval:check_dkim_adsp('1')
39
header DKIM_ADSP_CUSTOM_MED eval:check_dkim_adsp('2')
40
header DKIM_ADSP_CUSTOM_HIGH eval:check_dkim_adsp('3')
42
# Note: DKIM_SIGNED, DKIM_VALID and DKIM_VALID_AU are mainly informational
43
# rules, and can serve as a basis for meta rules; it is not difficult for a
44
# sender to cause hits on them or to prevent them from firing, so their score
46
tflags DKIM_SIGNED net
47
tflags DKIM_VALID net nice
48
tflags DKIM_VALID_AU net nice
49
tflags DKIM_ADSP_NXDOMAIN net
50
tflags DKIM_ADSP_DISCARD net
51
tflags DKIM_ADSP_ALL net
52
tflags DKIM_ADSP_CUSTOM_LOW net userconf
53
tflags DKIM_ADSP_CUSTOM_MED net userconf
54
tflags DKIM_ADSP_CUSTOM_HIGH net userconf
56
describe DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
57
describe DKIM_VALID Message has at least one valid DKIM or DK signature
58
describe DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain
59
describe __DKIM_DEPENDABLE A validation failure not attributable to truncation
61
describe DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS
62
describe DKIM_ADSP_DISCARD No valid author signature, domain signs all mail and suggests discarding the rest
63
describe DKIM_ADSP_ALL No valid author signature, domain signs all mail
64
describe DKIM_ADSP_CUSTOM_LOW No valid author signature, adsp_override is CUSTOM_LOW
65
describe DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED
66
describe DKIM_ADSP_CUSTOM_HIGH No valid author signature, adsp_override is CUSTOM_HIGH
68
full __RESIGNER1 eval:check_dkim_valid('linkedin.com')
69
full __RESIGNER2 eval:check_dkim_valid('googlegroups.com','yahoogroups.com','yahoogroups.de')
70
tflags __RESIGNER1 net
71
tflags __RESIGNER2 net
72
meta __VIA_RESIGNER __RESIGNER1 || __RESIGNER2
73
describe __VIA_RESIGNER Mail through a popular signing remailer
75
meta NML_ADSP_CUSTOM_LOW DKIM_ADSP_CUSTOM_LOW && !__VIA_ML && !__VIA_RESIGNER
76
meta NML_ADSP_CUSTOM_MED DKIM_ADSP_CUSTOM_MED && !__VIA_ML && !__VIA_RESIGNER
77
meta NML_ADSP_CUSTOM_HIGH DKIM_ADSP_CUSTOM_HIGH && !__VIA_ML && !__VIA_RESIGNER
78
describe NML_ADSP_CUSTOM_LOW ADSP custom_low hit, and not from a mailing list
79
describe NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list
80
describe NML_ADSP_CUSTOM_HIGH ADSP custom_high hit, and not from a mailing list
82
# old, declared for compatibility with pre-3.3, should have scores 0
84
full DKIM_VERIFIED eval:check_dkim_valid()
85
header DKIM_POLICY_TESTING eval:check_dkim_testing()
86
header DKIM_POLICY_SIGNSOME eval:check_dkim_signsome()
87
header DKIM_POLICY_SIGNALL eval:check_dkim_signall()
88
tflags DKIM_VERIFIED net nice
89
tflags DKIM_POLICY_SIGNSOME net nice
90
tflags DKIM_POLICY_SIGNALL net nice
91
tflags DKIM_POLICY_TESTING net nice
93
endif # Mail::SpamAssassin::Plugin::DKIM