How to install Postfix @ Debian 5.0 i686
March 30th, 2010 — 5:44am
Requirement
* GNU C Compiler and other small packages required
ervan:~# apt-get install gcc build-essential automake autoconf autoreconf libncurses5-dev g++ ervan:~# apt-get install libdb-devel
* OpenSSL
* CyrusSASL
* Courier Authlib and Courier IMAP
Package
ervan:~# wget ftp://ftp.reverse.net/pub/postfix/official/postfix-2.7.0.tar.gz ervan:~# tar -zxvf postfix-2.7.0.tar.gz ervan:~# cd postfix-2.7.0
Creating new user and groups for postfix
ervan:~/postfix-2.7.0# groupadd -g 1001 postfix ervan:~/postfix-2.7.0# groupadd -g 1002 postdrop ervan:~/postfix-2.7.0# useradd -u 1001 -g 1001 -G postdrop -d /home/postfix -s /usr/sbin/nologin postfix
Installation
ervan:~/postfix-2.7.0# mkdir /usr/include/openssl/ ervan:~/postfix-2.7.0# cp /usr/local/ssl/include/openssl/* /usr/include/openssl/ ervan:~/postfix-2.7.0# cp /usr/local/ssl/include/mysql/* /usr/include/ ervan:~/postfix-2.7.0# ln -s ./libssl.so.0.9.8 ./libssl.so ervan:~/postfix-2.7.0# ln -s ./libcrypto.so.0.9.8 ./libcrypto.so ervan:~/postfix-2.7.0# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -DUSE_TLS -DUSE_CYRUS_SASL -I/usr /include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/lib64 -lssl -lcrypto -lsasl2' ervan:~/postfix-2.7.0# make && make install