Compiling OpenSSL & Cyrus-SASL
We will need openssl dependencies when installing postfix MTA.We also need Cyrus-SASL to work with postfix MTA because postfix will using cyrus-sasl for authentication.
Installing OpenSSL
cd /root/postfixrocks
tar -zxvf openssl-0.9.7g.tar.gz
cd openssl-0.9.7g
./config -fPIC
make depend
make install
Installing Cyrus-SASL
cd /root/postfixrocks
tar -zxvf cyrus-sasl-2.1.23.tar.gz
cd cyrus-sasl-2.1.23
export CPPFLAGS="-I/usr/local/mysql/include/mysql"
export LDFLAGS="-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm"
./configure --enable-anon --enable-plain --enable-login --enable-sql \
--disable-krb4 --disable-otp --disable-cram --disable-digest \
--with-mysql=/usr/local/mysql/lib/mysql --without-pam --without-saslauthd \
--without-pwcheck --prefix=/usr --with-plugindir=/usr/lib/sasl2
make -j2; make install