How to install ezmlm-idx on deepOfix Mail Server

Introduction

Below simple 7 step of How-to will help you to setup ezmlm-idx on existing deepOfix Mail Server without changing any critical configuration. If you have any query before installing it on your deepOfix Mail Server, please feel free to shoot out any question at deepofix-users ( at ) list.deeproot.in

STEP - 1

Login to deepOfix as root, go to local source directory, get the required stable source to compile ezmlm-idx binaries.

# cd /usr/local/src
# wget http://cr.yp.to/software/ezmlm-0.53.tar.gz
# wget http://www.ezmlm.org/archive/5.1.1/ezmlm-idx-5.1.1.tar.gz

STEP - 2

Extract it, and copy contents of ezmlm-idx-5.1.1/* to ezmlm-0.53/

# tar -zxvf ezmlm-0.53.tar.gz
# tar -zxvf ezmlm-idx-5.1.1.tar.gz
# cp -r ezmlm-idx-5.1.1/* ezmlm-0.53/ 

STEP - 3

Patch ezmlm-0.53/ source with ezmlm-0.53/idx.patch.

# cd ezmlm-0.53
# patch < idx.patch 

You will get something like this on your console.

...
patching file ezmlm-list.1
patching file ezmlm-return.1
patching file ezmlm-send.1
... 

STEP - 4

Compile the Source and Install it.

# make
# make man
# make setup 

Above command will copy all ezmlm-idx binaries in /usr/local/bin/ezmlm directory and cofiguration file in /etc/ezmlm directory. You can also check the binaries doing 'ls -1'.

# ls -l /usr/local/bin/ezmlm/
...
ezmlm-idx
ezmlm-issubn
ezmlm-limit
ezmlm-list
... 

STEP - 5

Now time to create Mailing List in deepOfix, Login to EasyPush? Server Manager (1) and Add/Create new user ID (2), set it's, 'Alternate Email Address' to 'ID-catchall'.

(1) http://code.deeproot.in/easypush/wiki/UserGuide/LoggingIn 
(2) http://code.deeproot.in/easypush/wiki/UserGuide/Accounts/Users/Add-Modify

Note: That user's login ID will decide Mailing List's e-mail ID. i.e if new user's ID is 'mlist' then all Mailing List's e-mail ID would be like this.

mlist-deepofix@yourdomain.tld
mlist-deepofix-mta@yourdomain.tld

So, in our case, we have Added/Created new user ID 'mlist'. So, We have this.

Login Name: mlist
Full Name:  Group of Mailing List
mail: mlist@yourdomain.tld
Alternate Email Address: mlist-catchall@yourdomain.tld

STEP - 6

Now, again login to deepOfix as root. After successful login, create your desire Mailing List. In our case, we want to create mailing list for deepOfix.

# /usr/local/bin/ezmlm/ezmlm-make  /home/mlist/deepofix \
 /home/mlist/.qmail-deepofix mlist-deepofix yourdomain.tld

After successful completion of above command, we would have this in /home/mlist directory.

# ls -a1 /home/mlist/
...
deepofix
Maildir
.qmail-deepofix
.qmail-deepofix-default
.qmail-deepofix-owner
.qmail-deepofix-return-default
...

Change the permission of /home/mlist/deepofix and /home/mlist/qmail-deepofix* to mlist:easypush to solve permission issues. (We have logged in as root!) Thanks to  Manoj Gaur &  Kartik Srivastava.

chown -R  mlist:easypush /home/mlist/deepofix
chown mlist:easypush /home/mlist/qmail-deepofix*

So, our Mailing List for deepOfix is ready. So Mailing List e-mail ID would be this.

mail ID: mlist-deepofix@yourdomain.tld

STEP - 7

Now, Subscribe to Mailing List to check our setup is working fine or not?

# echo "To: mlist-deepofix-subsribe@yourdomain.tld" |
  /var/qmail/bin/qmail-inject -fadmin@yourdomain.tld 

#cat /home/admin/Maildir/new/1183104167.XXXXXXXXXXX

Return-Path: <mlist-deepofix-return-@yourdomain.tld>
Delivered-To: admin@yourdomain.tld
Received: (qmail 32648 invoked by uid 1010); 29 Jun 2007 08:02:47 -0000
Mailing-List: contact mlist-deepofix-help@yourdomain.tld; run by ezmlm
List-Help: <mailto:mlist-deepofix-help@yourdomain.tld>
List-Post: <mailto:mlist-deepofix@yourdomain.tld>
List-Subscribe: <mailto:mlist-deepofix-subscribe@yourdomain.tld>
Date: 29 Jun 2007 08:02:47 -0000
Message-ID: <1183104167.32647.ezmlm@yourdomain.tld>
From: mlist-deepofix-help@yourdomain.tld
To: admin@yourdomain.tld
Delivered-To: responder for mlist-deepofix@yourdomain.tld
Received: (qmail 32642 invoked by uid 0); 29 Jun 2007 08:02:47 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Help for mlist-deepofix@yourdomain.tld

So, now we can say that, deepOfix Mailing List (Our Setup) is working fine. If you want to add another mailing list under same user directory then follow the same procedure from STEP - 6 if you want to create Mailing List in new user's directory then follow procedure from STEP - 5.

After successful installation of ezmlm-idx on deepOfix. Please send acknowledgment at deepofix-users ( at ) list.deeproot.in. If you found any problem in this How-to or any query regarding this please feel free to shoot out any question at deepofix-users ( at ) list.deeproot.in.