Saturday, July 30, 2011

IndiMail Installation for newbies in 10 steps

Installing IndiMail from RPM
1. Install OS
 

SUSE
o openSUSE 11.4
o openSUSE 11.3
o openSUSE Tumbleweed
o SUSE Linux Enterprise 11 SP1
o SUSE Linux Enterprise 11
o SUSE Linux Enterprise 10
o openSUSE Factory

* Red Hat

o Fedora 15
o Fedora 14
o Red Hat Enterprise Linux 5
o Red Hat Enterprise Linux 6

o CentOS 5
o Mandriva_2010.1

2. Determine if your OS is 32 bit or 64 Bit

% uname -m

The command will output i386, i586, i686 for 32 bit and x86_64 for 64 bit

3. Download the Repo correspoding to your OS from
http://sourceforge.net/projects/indimail/files/Repo/

e.g IndiMail-CentOS_5.repo for CentOS 5 and copy that to /etc/yum.repos.d
% sudo cp IndiMail-CentOS_5.repo /etc/yum.repos.d/indimail.repo

4. Execute the YUM command as per the output of uname command in step 2
% sudo yum install indimail.i386 (for 32 bit)
% sudo yum install indimail.x86_64 (for 64 bit)

The above should install IndiMail

5. Shutdown MySQL if already running and disable MySQL being started up by the system

% /etc/init.d/mysqld stop
% sudo chkconfig mysqld off
% /bin/rm -f /service/mysql.3306/down

6. Start IndiMail
% sudo service indimail start

7. Check if everthing is fine by running the svstat command
% sudo /var/indimail/bin/svstat /service/*
/service/clamd: up (pid 1579) 1028 seconds
/service/fetchmail: up (pid 1578) 1028 seconds
/service/freshclam: up (pid 1584) 1028 seconds
/service/greylist.1999: up (pid 1581) 1028 seconds
/service/indisrvr.4000: up (pid 1570) 1028 seconds
/service/inlookup.infifo: up (pid 1568) 1028 seconds
/service/mysql.3306: up (pid 1555) 1029 seconds
/service/proxy-imapd.4143: up (pid 1549) 1029 seconds
/service/proxy-imapd-ssl.9143: up (pid 1548) 1029 seconds
/service/proxy-pop3d.4110: up (pid 1554) 1029 seconds
/service/proxy-pop3d-ssl.9110: up (pid 1583) 1028 seconds
/service/pwdlookup: up (pid 1580) 1028 seconds
/service/qmail-imapd.143: up (pid 1576) 1028 seconds
/service/qmail-imapd-ssl.993: up (pid 1594) 1028 seconds
/service/qmail-pop3d.110: up (pid 1597) 1028 seconds
/service/qmail-pop3d-ssl.995: up (pid 1577) 1028 seconds
/service/qmail-poppass.106: up (pid 1587) 1028 seconds
/service/qmail-qmqpd.628: down 1029 seconds
/service/qmail-qmtpd.209: up (pid 1564) 1029 seconds
/service/qmail-send.25: up (pid 1553) 1029 seconds
/service/qmail-smtpd.25: up (pid 1598) 1028 seconds
/service/qmail-smtpd.366: up (pid 1565) 1029 seconds
/service/qmail-smtpd.465: up (pid 1551) 1029 seconds
/service/qmail-smtpd.587: up (pid 1559) 1029 seconds
/service/qmail-spamlog: up (pid 1552) 1029 seconds
/service/qscanq: up (pid 3802) 29 seconds


8. Play with the system
Add a domain
% sudo /var/indimail/bin/vadddomain example.com password

Add a user
% sudo /var/indimail/bin/vadduser user01@example.com password

Send an email using SMTP
% swaks --to youremail@yourdomain --from user01@example.com --server localhost

Inject a mail locally
% cat /tmp/email.msg | mail -s "testing indimail" mbhangui@gmail.com you@yourdomain

9. Set up your .bash_profile and RTFM
PATH=$PATH:/var/indimail/bin:/var/indimail/sbin
MANPATH=$MANPATH:/var/indimail/man

% man indimail

10. Buy beer for Varra .. ;)

No comments:

Post a Comment