% sudo yum install indimail.x86_64 (for 64 bit)
* for debian packages, execute the command
% dpkg -i indimail_version_i386.deb (for 32 bit)
% dpkg -i indimail_version_amd64.deb (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 use...@example.com password
Send an email using SMTP
% swaks --to youremail@yourdomain --from use...@example.com --server localhost
Inject a mail locally
% cat /tmp/email.msg | mail -s "testing indimail" mbha...@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 Manvendra Bhangui
NOTE: The MySQL database gets installed with the user 'mysql' with all privileges and a user 'indimail' with limited privileges. You will find the passwords for these two users in the script /var/indimail/sbin/svctool. If you modify these, please don't forget to modify /var/indimail/control/host.mysql