Compiling Courier-Authlib
Courier-Authlib is the Courier authentication library.We will need this library to working with Cyrus-SASL to authenticated all postfix MTA SMTP authentication
Install Courier-Authlib
cd /root/postfixrocks
tar -jxvf courier-authlib-0.63.0.tar.bz2
cd courier-authlib-0.63.0
./configure --with-authshadow
make && make install
Create smtpd.conf
cd /usr/lib/sasl2
vi smtpd.conf
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/usr/local/var/spool/authdaemon/socket
Create Symlink to /usr/lib64/sasl2
ln -s /usr/lib/sasl2/smtpd.conf smtpd.conf
Change Owner and Group To Postfix
cd /usr/local/var/spool
chown -R postfix:postfix authdaemon
Starting Up Courier-Authlib
/usr/local/sbin/authdaemond start
Add Courier-Authlib into boot.local
echo "/usr/local/sbin/authdaemond start" >> /etc/init.d/boot.local