]> git.proxmox.com Git - proxmox-spamassassin.git/blob - sa-updates/25_asn.cf
update SpamAssassin signatures
[proxmox-spamassassin.git] / sa-updates / 25_asn.cf
1 # SpamAssassin - ASN rules
2 #
3 # Please don't modify this file as your changes will be overwritten with
4 # the next update. Use /etc/mail/spamassassin/local.cf instead.
5 # See 'perldoc Mail::SpamAssassin::Conf' for details.
6 #
7 # <@LICENSE>
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:
14 #
15 # http://www.apache.org/licenses/LICENSE-2.0
16 #
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.
22 # </@LICENSE>
23 #
24 ###########################################################################
25
26 # Requires the Mail::SpamAssassin::Plugin::ASN plugin be loaded.
27
28 # This plugin queries asn.routeviews.org for ASN and route info and adds a
29 # header containing the data returned so that it can be used by the bayes
30 # tokenizer. See the plugin's POD docs for more info.
31
32 # Apply default ASN rules for pre-4.0 clients only.
33 # Usage changed in 4.0: there is also direct GeoDB/GeoIP support,
34 # users should configure manually as described in plugin documentation.
35 ifplugin Mail::SpamAssassin::Plugin::ASN
36 if !(can(Mail::SpamAssassin::Plugin::ASN::has_check_asn))
37 asn_lookup asn.routeviews.org _ASN_ _ASNCIDR_
38 add_header all ASN _ASN_ _ASNCIDR_
39
40 # IPv6 support (Bug 7211)
41 #if can(Mail::SpamAssassin::Plugin::ASN::has_asn_lookup_ipv6)
42 # asn_lookup_ipv6 origin6.asn.cymru.com _ASN_ _ASNCIDR_
43 #endif
44 endif # !has_check_asn
45 endif # Mail::SpamAssassin::Plugin::ASN