spamd-dnsbld.8 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .\" Copyright (c) 2019 Markus Hennecke <markus-hennecke@markus-hennecke.de>
  2. .\"
  3. .\" Permission to use, copy, modify, and distribute this software for any
  4. .\" purpose with or without fee is hereby granted, provided that the above
  5. .\" copyright notice and this permission notice appear in all copies.
  6. .\"
  7. .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. .\"
  15. .Dd $Mdocdate: April 18 2019 $
  16. .Dt SPAMD-DNSBLD 8
  17. .Os
  18. .Sh NAME
  19. .Nm spamd-dnsbld
  20. .Nd daemon watching the
  21. .Xr spamd 8
  22. logs and trapping hosts on dns black lists
  23. .Sh SYNOPSIS
  24. .Nm
  25. .Bk -words
  26. .Op Fl dnv
  27. .Op Fl f Ar file
  28. .Ek
  29. .Sh DESCRIPTION
  30. The
  31. .Nm
  32. daemon watches the
  33. .Xr spamd 8
  34. log entries and does black list lookups for the
  35. IP addresses logged. If one of the configured black lists returns a
  36. match
  37. .Xr spamdb 8
  38. is used to trap the offending IP address. Optional if no
  39. match occurs the IP address can be whitelisted automatically.
  40. .Pp
  41. The options are as follows:
  42. .Bl -tag -width "-f fileXXX"
  43. .It Fl d
  44. Do not daemonize.
  45. If this option is specified,
  46. .Nm
  47. will run in the foreground and log to
  48. .Em stderr .
  49. .It Fl f Ar file
  50. Use
  51. .Ar file
  52. as the configuration file, instead of the default
  53. .Pa /etc/mail/spamd-dnsbld.conf .
  54. .It Fl n
  55. Configtest mode.
  56. Only check the configuration file for validity.
  57. .It Fl v
  58. This option allows
  59. .Nm
  60. to send DEBUG priority messages to syslog.
  61. .El
  62. .Pp
  63. When
  64. .Nm
  65. starts up, it reads settings from its configuration file, typically
  66. .Xr spamd-dnsbld.conf 5 .
  67. .Pp
  68. Each time
  69. .Xr spamd 8
  70. logs an IP connecting, DNS lookups are done using all the configured lists.
  71. If one of the lists return an IP address the connecting IP is trapped
  72. by calling
  73. .Pa /usr/sbin/spamdb -t -a IP .
  74. If automatic whitelisting is configured the IP will be whitelisted using
  75. .Xr spamdb 8
  76. in case no list returned a valid result.
  77. .Sh FILES
  78. .Bl -tag -width "/etc/mail/spamd-dnsbld.conf" -compact
  79. .It Pa /etc/mail/spamd-dnsbld.conf
  80. Default configuration file.
  81. .El
  82. .Sh SEE ALSO
  83. .Xr spamd 8 ,
  84. .Xr spamdb 8