THE SPEW - Land where drunk cows swim and home to my daily hand...
streaming media & music | Home | Archives | Albums | Pics

SHORT HOWTO: install Postfix from source with SASL authentication and SQL data access servers on Ubuntu Server 6.06 LTS

23 January, 2008 17:59

Source code compilation needs the apt-get resource package build-essential: 

sudo apt-get install build-essential 

The following packages needed from the apt repositories for the MySQL server and the libraries to compile postfix with this data access method:

sudo apt-get install mysql-server libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl mysql-client-5.0 mysql-common mysql-server-5.0 libmysqlclient15-dev zlib1g-dev 

The following packages needed from the apt repositories for the Cyrus SASL authentication server and the libraries to compile postfix with this authentication method:

sudo apt-get install sasl2-bin libsasl2 libsasl2-dev

Berkely DB libraries are also required:

sudo apt-get install libdb4.4 libdb4.4-dev

I used Postfix source version 2.4.6, found here.  Alternative mirrors can be found here.

Deflate the package:

tar -xzvf postfix-2.4.6.tar.gz

cd postfix-2.4.6

You may then create the makefiles:

make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/include/sasl -DHAS_MYSQL -I/usr/include/mysql" \
AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/mysql -lmysqlclient -lz -lm"

Then finally install Postfix with:

sudo make; make install

Cheers! 

[Software]
[Comments(0)] [Trackbacks(0)] [Permalink]

Add comment

Add comment
 authimage
Your E-Mail Address will NOT be Shared

Main Entry: spew
Function: verb
Etymology: Middle English, from Old English spIwan; akin to Old High German spIwan to spit, Latin spuere, Greek ptyein intransitive verb
1 : VOMIT
2 : to come forth in a flood or gush
3 : to ooze out as if under pressure : EXUDE transitive verb
1 : VOMIT
2 : to send or cast forth with vigor or violence or in great quantity -- often used with out - spew-er noun
--
Merriam-Webster

Land where drunk cows swim and home to my daily hand