MAP_REGEX

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:

 APPENDDEF(`confMAPDEF', `-DMAP_REGEX') 

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'  or  pattern-compile-error: : Operation not applicable  or  ld: Undefined symbol    _regexec    _regcomp    _regerror 

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



Sendmail
sendmail, 4th Edition
ISBN: 0596510292
EAN: 2147483647
Year: 2002
Pages: 1174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net