[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] order of email rejections




On Mon, 14 Jun 2004, Chris Edwards wrote:

Bennett Lanford wrote:

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' ...


if I add the delay_checks, would I still have to put the FEATURE(`access_db`... before the FEATURE(`dnsbl`).. lines?

The documentation doesn't mention any requirement like that. (It just mentions that delay_checks should go in the mc file after access_db.)

In checking my own mc file (FWIW), I see that my dnsbl features come after the access_db and delay_checks features. ... But I don't think it matters.

Ben
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: