mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
661cae34a5
- always add required entries to /etc/services [1] - use USER framework (PR ports/152498 was committed) PR: [1] ports/157266 Submitted by: [1] Jimmy Olgeni olgeni@
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
**********************************************************************
|
|
To enable spamd you need:
|
|
|
|
1) 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.
|
|
|
|
2) Configuration template is available in %%PREFIX%%/etc/spamd as
|
|
spamd.conf.sample file. Copy then to spamd.conf file and
|
|
edit to suit your needs.
|
|
|
|
3) 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
|
|
|
|
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 %%PREFIX%%/%%DOCSDIR%%/ for usage.
|
|
|
|
**********************************************************************
|