1
# SpamAssassin rules file: compensation for common false positives
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
###########################################################################
25
# Header compensation tests
27
require_version @@VERSION@@
29
header __HAS_RCVD exists:Received
30
meta NO_RECEIVED (!__HAS_RCVD)
31
tflags NO_RECEIVED nice userconf
32
describe NO_RECEIVED Informational: message has no Received headers
34
###########################################################################
36
ifplugin Mail::SpamAssassin::Plugin::RelayEval
38
# The message was never sent via an untrustworthy host.
39
header ALL_TRUSTED eval:check_all_trusted()
40
describe ALL_TRUSTED Passed through trusted hosts only via SMTP
41
tflags ALL_TRUSTED nice userconf
43
header NO_RELAYS eval:check_no_relays()
44
tflags NO_RELAYS nice userconf
45
describe NO_RELAYS Informational: message was not relayed via SMTP