BSD Ports

mail/spamd 4.9.1_7 DragonFly

Traps spammers with a very slow smtp-login and return 4xx error

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
mail
Package size
54.2 KiB, 131.9 KiB installed

Description

Spamd is a fake sendmail(8)-like daemon which rejects false mail. It is designed to be very efficient so that it does not slow down the receiving machine.

spamd considers sending hosts to be of three types:

blacklisted hosts are redirected to spamd and tarpitted i.e. they are communicated with very slowly to consume the sender's resources. Mail is rejected with either a 450 or 550 error message. A blacklisted host will not be allowed to talk to a real mail server.

whitelisted hosts do not talk to spamd. Their connections are instead sent to a real mail server, such as sendmail(8).

greylisted hosts are redirected to spamd, but spamd has not yet decided if they are likely spammers. They are given a temporary failure message by spamd when they try to deliver mail.

In the other systems

SystemPortVersion
DragonFlymail/spamd4.9.1_7
FreeBSDmail/spamd4.9.1_7
NetBSDmail/spamd20060330nb3
MidnightBSDmail/spamd4.9.1_3

Install

Binary package:

pkg install spamd

From DPorts:

cd /usr/dports/mail/spamd && make install clean

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

To enable spamd you need:

1) add required spamd entries to /etc/services, run command
     /usr/local/sbin/add-spamd-to-etc-service

2) Enable spamd in /etc/rc.conf with the following line:
   obspamd_enable="YES"
   obspamlogd_enable="YES"

   For PF you can specify a dedicated pflog interface with parameter
   obspamlogd_pflog_if. This interface will be created and removed
   by the rc script of spamlogd.

3) Configuration template is available in /usr/local/etc/spamd as
   spamd.conf.sample file.  Copy then to spamd.conf file and
   edit to suit your needs.

4) Add following lines to the pf.conf(5)

  table <spamd-white> persist
  no rdr inet proto tcp from <spamd-white> to any \
      port smtp
  rdr pass inet proto tcp from any to any \
      port smtp -> 127.0.0.1 port spamd

FreeBSD only features (not in OpenBSD):
  - sync for spamdb (parameter -Y)
    See /usr/local/share/doc/spamd/ for usage.