Difference between revisions of "Template:Postfix-Configuration"

From CBLFS
Jump to navigationJump to search
(New page: To build postfix we need to build the makefiles. Use the following commands to create the appropriate CCARGS and AUXLIBS variables: export CCARGS="-DDEF_DAEMON_DIR=\\\"/usr/{{{libdir|lib...)
 
 
Line 1: Line 1:
 
To build postfix we need to build the makefiles. Use the following commands to create the appropriate CCARGS and AUXLIBS variables:
 
To build postfix we need to build the makefiles. Use the following commands to create the appropriate CCARGS and AUXLIBS variables:
  
  export CCARGS="-DDEF_DAEMON_DIR=\\\"/usr/{{{libdir|lib}}/postfix\\\" \
+
  export CCARGS="-DDEF_DAEMON_DIR=\\\"/usr/{{{libdir|lib}}}/postfix\\\" \
 
  -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\" \
 
  -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\" \
 
  -DDEF_HTML_DIR=\\\"/usr/share/doc/postfix-{{Postfix-Version}}/html\\\" \
 
  -DDEF_HTML_DIR=\\\"/usr/share/doc/postfix-{{Postfix-Version}}/html\\\" \
Line 10: Line 10:
  
 
  export CCARGS="${CCARGS} -DHAS_PCRE -I/usr/include"
 
  export CCARGS="${CCARGS} -DHAS_PCRE -I/usr/include"
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}} -lpcre"
+
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}}} -lpcre"
  
 
TLS Authentication  
 
TLS Authentication  
 
   
 
   
 
  export CCARGS="${CCARGS} -DUSE_TLS -I/usr/include/openssl"
 
  export CCARGS="${CCARGS} -DUSE_TLS -I/usr/include/openssl"
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}} -lssl -lcrypto"
+
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}}} -lssl -lcrypto"
  
 
To use TLS you will also need [[CyrusSASL]]
 
To use TLS you will also need [[CyrusSASL]]
Line 22: Line 22:
 
   
 
   
 
  export CCARGS="${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
 
  export CCARGS="${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}} -lsasl2"
+
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}}} -lsasl2"
  
 
OpenLDAP  
 
OpenLDAP  
 
   
 
   
 
  export CCARGS="${CCARGS} -I/usr/include -DHAS_LDAP"
 
  export CCARGS="${CCARGS} -I/usr/include -DHAS_LDAP"
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}} -lldap -llber"
+
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}}} -lldap -llber"
  
 
MySQL  
 
MySQL  
  
 
  export CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql"
 
  export CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql"
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}} -lmysqlclient -lz -lm"
+
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}}} -lmysqlclient -lz -lm"
  
 
PostgreSQL  
 
PostgreSQL  
  
 
  export CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/postgresql"
 
  export CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/postgresql"
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}} -lpq -lz -lm"
+
  export AUXLIBS="${AUXLIBS} -L/usr/{{{libdir|lib}}} -lpq -lz -lm"
  
 
TinyCDB  
 
TinyCDB  

Latest revision as of 20:21, 16 February 2009

To build postfix we need to build the makefiles. Use the following commands to create the appropriate CCARGS and AUXLIBS variables:

export CCARGS="-DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\" \
-DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\" \
-DDEF_HTML_DIR=\\\"/usr/share/doc/postfix-2.5.10/html\\\" \
-DDEF_README_DIR=\\\"/usr/share/doc/postfix-2.5.10/README\\\""
export AUXLIBS=""

PCRE Support:

export CCARGS="${CCARGS} -DHAS_PCRE -I/usr/include"
export AUXLIBS="${AUXLIBS} -L/usr/lib -lpcre"

TLS Authentication

export CCARGS="${CCARGS} -DUSE_TLS -I/usr/include/openssl"
export AUXLIBS="${AUXLIBS} -L/usr/lib -lssl -lcrypto"

To use TLS you will also need CyrusSASL

Cyrus-SASL

export CCARGS="${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
export AUXLIBS="${AUXLIBS} -L/usr/lib -lsasl2"

OpenLDAP

export CCARGS="${CCARGS} -I/usr/include -DHAS_LDAP"
export AUXLIBS="${AUXLIBS} -L/usr/lib -lldap -llber"

MySQL

export CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql"
export AUXLIBS="${AUXLIBS} -L/usr/lib -lmysqlclient -lz -lm"

PostgreSQL

export CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/postgresql"
export AUXLIBS="${AUXLIBS} -L/usr/lib -lpq -lz -lm"

TinyCDB

export CCARGS="${CCARGS} -DHAS_CDB"
export AUXLIBS="${AUXLIBS} </path/to/CDB>/libcdb.a"