Qmailadmin/EZMLS/ Auto Responder/courier-authlib/courier-imap installation & Configuration STEPS

>Qmailadmin/EZMLS/ Auto Responder/courier-authlib/courier-imap installation & Configuration steps.


—————————————————————–
Installing Ezmlm
—————————————————————–

cd /usr/local/src
tar xzf ezmlm-0.53.tar.gz
chown -R root.root ezmlm-0.53
tar xzf ezmlm-idx-0.40.tar.gz
chown -R root.root ezmlm-idx-0.40

cp -R ezmlm-idx-0.40/* ezmlm-0.53/
cd ezmlm-0.53
patch < idx.patch
patch -p1 < ezmlm-idx-0.53.400.unified_41.patch
make
make man
make setup

—————————————-
Installing Auto Responder
—————————————-
cd /usr/local/src
tar xzf autorespond-2.0.4.tar.gz
chown -R root.root autorespond-2.0.4
cd autorespond-2.0.4
make
make install

—————————————
Installing QmailAdmin
—————————————

cd /usr/local/src/qmailadmin

./configure –enable-htmldir=/var/www/html/ –enable-cgibindir=/var/www/html/mail/ –enable-cgipath=/mail/qmailadmin

Note-
/var/www/html is DocumentRoot for Apache

make
make install-strip

————————————————————————
Apache setting (httpd.conf – /etc/httpd/conf.d/qmail.conf)

AddHandler cgi-script .cgi

SriptAlias /mail/ “/home/www/html/mail/”

AllowOverride None
Options +FollowSymLinks
Order allow,deny
Allow from all

Starting TCPserver for listen on Port 25

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
or
qmailctl cdb
—————————————————-
#login first time on qmailadmin web interface
—————————————————-

./vpasswd postmaster
It will ask password, Provide the password “xxxxx”
Password is – xxxxx

——————————————————–
Adding new virtual domain i.e vmgraduate.com
———————————————————

./vadddomain vmgraduate.com

Note – It will ask for postmaster password . Please provide the password .

——————————————————–
courier-Authlib Installation
——————————————————–

Installation
Download and unpack the authentication library

cd /usr/local/src/qmail/

tar -xf courier-authlib-0.58.tar.bz2
cd /usr/local/src/qmail/courier-authlib-0.58

./configure –prefix=/usr/local/courier-authlib –without-authpam –without-authldap –without-authpwd –without-authmysql –without-authpgsql –without-authshadow –without-authuserdb –without-authcustom –without-authcram –without-authpipe –with-authvchkpw –with-redhat

Note – if you are running Centos/fedora, you may have to add a with ./configure
–with-redhat

Note – 1) Make sure if you get the following Error – configure: error: C++ preprocessor “/lib/cpp” fails sanity check

Solution – Check out if these prerequisite match “gcc gcc-cpp gcc-c++” else install these packages

2) Make sure if you get the following error – configure: error: Cannot find either the gdbm or the db library.

Solution –
yum install gdbm-devel ( GDBM Development tool might not installed)

make
make install
make install-configure

#copy the start script at /etc/init.d/ location

cp courier-authlib.sysvinit /etc/init.d/courier-authlib
chmod 700 /etc/init.d/courier-authlib

chkconfig –add courier-authlib

#Review the settings for the authentication library

vi /usr/local/courier-authlib/etc/authlib/authdaemonrc

authmodulelist=”authvchkpw” —– (vpopmail authenticatation)

—————————————————————
courier-IMAP Installation
—————————————————————

cd /usr/local/src/qmail

tar -xf courier-imap-4.0.6.tar.bz2
cd /usr/local/src/qmail/courier-imap-4.0.6

COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig CPPFLAGS=-I/usr/local/courier-authlib/include ./configure –prefix=/usr/local/courier-imap –disable-root-check –with-ssl –with-redhat

Note – if you are running Centos/fedora, you may have to add a with ./configure
–with-redhat

make
make install
make install-configure

cp courier-imap.sysvinit /etc/init.d/courier-imap
chmod 744 /etc/rc.d/init.d/courier-imap
chkconfig –add courier-imap

Troubleshooting

Challenge – tcpserver: fatal: unable to figure out port number for pop3

Solution – Modify “/service/qmail-pop3d/run “ & replace pop3 110.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: