''MAP_REGEX'' '''


Use regular expression maps (V8.9 and above) tune with confMAPDEF

It might be desirable to match addresses to regular expressions in rule sets. One way to do this is with the regex class of database map (sequence). If such support is desirable, you can enable inclusion by declaring MAP_REGEX in your Build m4 file like this:


But just defining MAP_REGEX does not guarantee that sendmail will compile with support for it. If you get one of the following errors, or something similar, your C-language library lacks support for the required POSIX regular expression library routines:

undefined reference to 'regcomp'
pattern-compile-error: : Operation not applicable
ld: Undefined symbol

If you lack the needed library support, see Section 3.1.3 for instructions on how to download and install regex libraries.

If you are running a precompiled sendmail binary, you can use the -d0.10 debugging command-line switch (-d0.10) to determine if MAP_REGEX support is defined (if it appears in the list, it is defined).

    Part I: Build and Install
    Chapter 2. Build and Install sendmail
    Chapter 4. Configure sendmail.cf with m4
    Part II: Administration
    Part III: The Configuration File