Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Postfix Documentation
Previous Page Home Next Page

Building Postfix with PCRE support

Note: to use pcre with Debian GNU/Linux's Postfix, all you need is to install the postfix-pcre package and you're done. There is no need to recompile Postfix.

In some future, Postfix will have a plug-in interface for adding map types. Until then, you need to compile PCRE support into Postfix.

First of all, you need the PCRE library (Perl Compatible Regular Expressions), which can be obtained from:

NOTE: pcre versions prior to 2.06 cannot be used.

In order to build Postfix with PCRE support you need to add -DHAS_PCRE and a -I for the PCRE include file to CCARGS, and add the path to the PCRE library to AUXLIBS, for example:

make -f Makefile.init makefiles \
    "CCARGS=-DHAS_PCRE -I/usr/local/include" \
    "AUXLIBS=-L/usr/local/lib -lpcre"

Solaris needs run-time path information too:

make -f Makefile.init makefiles \
    "CCARGS=-DHAS_PCRE -I/usr/local/include" \
    "AUXLIBS=-L/usr/local/lib -R/usr/local/lib -lpcre"
Postfix Documentation
Previous Page Home Next Page