Ubuntu/postfix

From MattWiki
Jump to: navigation, search
noteThis Page was written with Ubuntu 12.04 LTS in mind, and may not work correctly with other versions or distributions.

Installing Postfix on Ubuntu

apt-get -y build-dep postfix sqlite3 libsqlite3-dev
mkdir -p /var/src
cd /var/src
wget ftp://ftp.reverse.net/pub/postfix/official/postfix-2.9.3.tar.gz
tar -xzf postfix-2.9.3.tar.gz
cd postfix-2.9.3
make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/lib/sasl2 -DNO_NIS -DHAS_SQLITE -I/usr/include/sqlite" \
AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/sqlite -lmysqlclient -lz -lm" && make && make install