the CGI user. The easiest way to do this is to copy them to /usr/lib or
/lib.
Documentation for the setup of your selected storage driver can be found
in the tools.[storage driver]/ directory.
NOTE: Some operating system distributions include their own version of
libdb3_drv and libdb4_drv. A majority of these packaged versions
do work correctly with DSPAM, however a few do not. If you experience
problems with one of the libdb storage drivers, consider downloading
and compiling the official source tree from http://www.sleepycat.com.
1. 配置结构
./configure [options]
DSPAM支持下面的配置结构:
PATH SWITCHES
--with-dspam-home=DIR
为dspam用户信息指定一个可选择的存储目录。默认路径是/var/dspam。
--prefix=DIR
安装时指定一个可选的root 路径前缀。默认方式为:/usr/local。这并不影响DSPAM_HOME。
FILESYSTEM SCALE
默认的filesystem scale是:"small-scale",在顶级(top-level)DSPAM_HOME/data目录下把每个用户写
入自己的目录里。以下两个开关允许为了适合比较大型的安装而把scale作一定变动。
字串2
--enable-large-scale large-scale执行的开关。用户数据将以$DSPAM_HOME/data/u/s/user方式代替$DSPAM_HOME/data/user
被存储起来。
--enable-domain-scale
domain-scale执行的开关。用的时候,username@domain会阿被当成用户的id,用户数据会被
当作$DSPAM_HOME/data/domain.com/user存储,同时,$DSPAM_HOME/opt-in/domain/user.dspam也
会代替$DSPAM_HOME/data/user。
1. CONFIGURATION
./configure [options]
DSPAM supports the configuration options below.
PATH SWITCHES
--with-dspam-home=DIR
Specify an alternative storage directory for dspam user information. The
default is /var/dspam.
--prefix=DIR
Specify an alternative root prefix for installation. The default is
/usr/local. This does not affect DSPAM_HOME.
FILESYSTEM SCALE
The default filesystem scale is "small-scale", and writes each user to
its own directory in the top-level DSPAM_HOME/data directory.
The following two switches allow the scale to be changed to be more
suitable for larger installations. 字串3
--enable-large-scale
Switch for large-scale implementation. User data will be stored as
$DSPAM_HOME/data/u/s/user instead of $DSPAM_HOME/data/user
--enable-domain-scale
Switch for domain-scale implementation. When used, username@domain should
be passed in as the user id and user data will be stored as
$DSPAM_HOME/data/domain.com/user and $DSPAM_HOME/opt-in/domain/user.dspam
instead of $DSPAM_HOME/data/user
INTEGRATION SWITCHES
--with-delivery-agent=PROG
发送代理被称作邮件发送(deliver messages)。
用此来指定一个发送代理,而不是您的操作系统所指定的那个。尤其是您在一个不支持的平台上建立时,
您必须这样指定。如果您想包含额外的命令行标识,可能您会用到引号。DSPAM将自动替换最初给定的的命
令行参数,除了所有的DSPAM-specific参数(比如--user,--process,等等)。这并不要求必须得是一个本
地代理,但是必须得配置成可使某个代理可以通过。
当前,DSPAM已经为Linux,FreeBSD,Solaris,和Cygwin平台搭建了默认的发送代理(delivery agent)。
注:当指定一系列的参数时,您得在PROG周围加上引号。可能您也会用到标志符$u在参数列表的相应位置
字串6
用DSPAM指定用户ID的目的文件。例如:
在调用LDA之前$u将会在那里被目的用户所取代.然而,如果您的MTA要求用户参数列表已默认的方式最后出现,
这样就导致了潜在的问题。这就是为什么DSPAM允许您这样设置MTA配置的原因。
注:写$u时千万别忘记写$,只有在命令行中指定$u时可以不写$.这会防止$u被shell的环境变量'u'所覆盖。
您可以选择用%u。
INTEGRATION SWITCHES
--with-delivery-agent=PROG
The delivery agent is the tool called to deliver messages.
Use this to specify an alternative delivery agent, other than the one
specific to your operating system. If you are building on an unsupported
platform, you will need to specify this. You may use quotes if you wish to
include additional commandline flags. DSPAM will automatically relay the
commandline parameters it was initially given, with the exception of any
DSPAM-specific parameters (such as --user, --process, etc.). This does
not necessarily need to be a local agent, but can be configured to call
a proxy pass-through. 字串6
Currently, DSPAM has a default delivery agent selected for Linux,
FreeBSD, Solaris, and Cygwin platforms.
NOTE: When specifying a series of arguments, you will need to use quotes
around PROG. You may also use the $u identifier to specify that you
with DSPAM to place the destination user's ID in the corresponding space
in the arguments list. For example:
Where $u will be replaced by the destination user prior to calling the LDA.
This could potentially cause problems, however, if your MTA requires the
user argument list to come last, which is why DSPAM, by default, will allow
you to set this in the MTA configuration.
NOTE: be sure to escape the $ in $u. Only do this when specifying $u on the
commandline. This will prevent $u from being overwritten with the shell's
environment variable 'u'. You may alternatively use %u.

