BSD Ports

mail/spamd 4.9.1_7 FreeBSD

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

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
mail
Package size
58.1 KiB, 134.4 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
FreeBSDmail/spamd4.9.1_7
NetBSDmail/spamd20060330nb3
DragonFlymail/spamd4.9.1_7
MidnightBSDmail/spamd4.9.1_3

Install

Binary package:

pkg install spamd

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	spamd>0:mail/spamd

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.9.1_74.9.1_74.9.1_64.9.1_74.9.1_7
FreeBSD:14:quarterly4.9.1_74.9.1_7n/a4.9.1_74.9.1_7
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest--n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

Options name: mail_spamd

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
ssl
Service scripts
obspamd, obspamlogd

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) mount fdescfs to /dev/fd with the following line in /etc/fstab
	fdescfs  	/dev/fd  	fdescfs rw 	0 	0

   Note for XEN users:
   The XEN kernel ships without modules, therefore you have to add
   the following lines to the kernel config and build a new kernel.
	options FDESCFS
	device	pf
	device	pflog

5) 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.

===>   NOTICE:

The spamd port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

Files

distinfo 1
FileSizeSHA256
spamd-4.9.1.tar.gz52884b5d7630b19e897f95d2ad7e80332f86c0c0d508ed65a9190575fe7cbf6aa546d
Master sites 1
  • SF/freebsdspamd/spamd

Commit history 0

No commits in the history this site was built from.