Compiling Postfix
We will compile postfix to support mysql and cyrus-sasl library
so postfix will be able to authenticated with cyrus-sasl
Installing Postfix
cd /root/postfixrocks
tar -zxvf postfix-2.7.0.tar.gz
cd postfix-2.7.0
Note:
Copy and paste make command below in one line
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/lib -lssl -lcrypto -lsasl2'
make && make install