On Mon, 14 Jun 2004, Chris Edwards wrote:
Hi
Does the order of features in the sendmail config file dictate which
feature runs first?
Sometimes. According to the cf/README, the "general" order of directives
in the mc file is:
VERSIONID
OSTYPE
DOMAIN
FEATURE
local macro definitions
MAILER
LOCAL_CONFIG
LOCAL_RULE_*
LOCAL_RULESETS
(Different sources have given slightly different versions of the above,
but it is generally a good rule of thumb.)
ex.
If I declare FEATURE(`access_db', `hash -T<TMPF> -o /etc/access')dnl
before FEATURE(`dnsbl', `bl.spamcop.net', `"SPAM blocked see:
http://spamcop.net/bl.shtml?"$&{client_addr}')dnl
Will the access file be checked before the balick list file?
No.
In order for that to occur, you need to add the line:
FEATURE(`delay_checks')dnl
*after* the line that begins:
FEATURE(`access_db' ...