home *** CD-ROM | disk | FTP | other *** search
/ ftp.f-secure.com / 2014.06.ftp.f-secure.com.tar / ftp.f-secure.com / support / hotfix / fsis / IS-SpamControl.fsfix / iufssc / rules / 25_spf.cf < prev    next >
Text File  |  2006-11-29  |  3KB  |  81 lines

  1. # SpamAssassin - SPF rules
  2. #
  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.
  6. #
  7. # <@LICENSE>
  8. # Copyright 2004 Apache Software Foundation
  9. #
  10. # Licensed under the Apache License, Version 2.0 (the "License");
  11. # you may not use this file except in compliance with the License.
  12. # You may obtain a copy of the License at
  13. #
  14. #     http://www.apache.org/licenses/LICENSE-2.0
  15. #
  16. # Unless required by applicable law or agreed to in writing, software
  17. # distributed under the License is distributed on an "AS IS" BASIS,
  18. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # See the License for the specific language governing permissions and
  20. # limitations under the License.
  21. # </@LICENSE>
  22. #
  23. ###########################################################################
  24.  
  25. # Requires the Mail::SpamAssassin::Plugin::SPF plugin be loaded.
  26.  
  27. ifplugin Mail::SpamAssassin::Plugin::SPF
  28.  
  29. # SPF support:
  30. #   "pass" is nice
  31. #   "neutral" is somewhat bad
  32. #   "fail" is bad
  33. #   "softfail" is bad, but not as bad as "fail"
  34. # These are more trustworthy results than the SPF_HELO rules.
  35.  
  36. header SPF_PASS            eval:check_for_spf_pass()
  37. header SPF_NEUTRAL        eval:check_for_spf_neutral()
  38. header SPF_FAIL            eval:check_for_spf_fail()
  39. header SPF_SOFTFAIL        eval:check_for_spf_softfail()
  40.  
  41. # NOTE: SPF_HELO_PASS is not incredibly hard to fake, so shouldn't
  42. # provide much in the way of points compared to SPF_PASS et al.
  43. # However, a *failure* is still a very good spamsign.
  44.  
  45. header SPF_HELO_PASS        eval:check_for_spf_helo_pass()
  46. header SPF_HELO_NEUTRAL        eval:check_for_spf_helo_neutral()
  47. header SPF_HELO_FAIL        eval:check_for_spf_helo_fail()
  48. header SPF_HELO_SOFTFAIL    eval:check_for_spf_helo_softfail()
  49.  
  50. describe SPF_PASS        SPF: sender matches SPF record
  51. describe SPF_NEUTRAL        SPF: sender does not match SPF record (neutral)
  52. describe SPF_FAIL        SPF: sender does not match SPF record (fail)
  53. describe SPF_SOFTFAIL        SPF: sender does not match SPF record (softfail)
  54. describe SPF_HELO_PASS        SPF: HELO matches SPF record
  55. describe SPF_HELO_NEUTRAL    SPF: HELO does not match SPF record (neutral)
  56. describe SPF_HELO_FAIL        SPF: HELO does not match SPF record (fail)
  57. describe SPF_HELO_SOFTFAIL    SPF: HELO does not match SPF record (softfail)
  58.  
  59. tflags SPF_PASS            net nice userconf
  60. tflags SPF_NEUTRAL        net
  61. tflags SPF_FAIL            net
  62. tflags SPF_SOFTFAIL        net
  63. tflags SPF_HELO_PASS        net nice userconf
  64. tflags SPF_HELO_NEUTRAL        net
  65. tflags SPF_HELO_FAIL        net
  66. tflags SPF_HELO_SOFTFAIL    net
  67.  
  68. # rules from earlier than current release that can be reused
  69. #reuse SPF_PASS
  70. #reuse SPF_FAIL
  71. #reuse SPF_SOFTFAIL
  72. #reuse SPF_HELO_PASS
  73. #reuse SPF_HELO_FAIL
  74. #reuse SPF_HELO_SOFTFAIL
  75.  
  76. # new in 3.1, cannot be reused until 3.2
  77. # SPF_NEUTRAL
  78. # SPF_HELO_NEUTRAL
  79.  
  80. endif   # Mail::SpamAssassin::Plugin::SPF
  81.