Wednesday, September 9, 2009

iRED Mail Installation on Ubuntu Server 8.04

Installation of useful tools.

root@redmail:~# apt-get install acl wget dialog

Copy following to /etc/apt/sources.list
root@redmail:~# nano /etc/apt/sources.list

deb hardy main
deb-src hardy main
Add key, you can replace your key, I used this "61270A939E324B12" and update.

root@redmail:~#apt-key adv --keyserver --recv-keys 61270A939E324B12
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver --recv-keys 61270A939E324B12
gpg: requesting key 9E324B12 from hkp server
gpg: key 9E324B12: public key "Launchpad PPA for LI Daobing" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
root@redmail:~# apt-get update

Add mount option 'acl' in /etc/fstab
which contains '/etc/' directory if it doesn't there yet. Copy it as a new line, and comment the old one, add 'acl' like below.
    # /dev/sda1
    UUID=63b655fe-5959-46bc-b9db-09ad2d746b78 / ext3 relatime,errors=remount-ro 0 1

    Note: It seems you don't need to add this 'acl' option in /etc/fstab if you use VPS which hosted by OpenVZ, because you can't edit /etc/fstab file, and it already supports acl.

Remount the mount point which contains '/etc/' directory. e.g. '/':
    root@iredmail:/var/tmp/iRedMail-0.5.0# mount -o remount,rw,acl /

Download the package " iRedMail-0.5.0.tar.bz2 " from
and move it to /var/tmp directory.
#cd /var/tmp
#tar -xvf iRedMail-0.5.0.tar.bz2
#cd iRedMail-0.5.0/pkgs

Run the script

This will fetch the required packages from source, please make sure that your Internet is working ok.

root@redmail:/var/tmp/iRedMail-0.5.0/pkgs# bash
<> Creating necessary directories ...
<> ==================== Fetching Source Tarballs ====================
<> * 1/16:
<> * 2/16:
<> * 3/16:
<> * 4/16:
<> * 5/16:
<> * 6/16:
<> * 7/16:
<> * 8/16:
<> * 9/16:
<> * 10/16:
<> * 11/16:
<> * 12/16:
<> * 13/16:
<> * 14/16:
<> * 15/16:
<> * 16/16:
<> Validate Packages via md5sum ... [ OK ]
<> Checking necessary command/package: dialog/dialog ...
<> Checking necessary command/package: setfacl/acl ...
* All tasks had been finished Successfully. Next step:
* # cd ..
* # bash

Make Sure devcot is installted
root@redmail:/var/tmp/iRedMail-0.5.0/pkgs# apt-cache policy dovecot-common dovecot-pop3d dovecot-imapd | grep 'Candidate'
Candidate: 1:1.1.11-0ubuntu4~hardy2
Candidate: 1:1.1.11-0ubuntu4~hardy2
Candidate: 1:1.1.11-0ubuntu4~hardy2

Start Installation
root@redmail:/var/tmp/iRedMail-0.5.0# bash

It will ask question about path of directory, options, etc.... press next next and Y at the end.

It will installed every thing you need with options you select.

Component URL Access via HTTP Access via HTTPS
Roundcube webmail http://your_server/mail/ (or /webmail, /roundcube) YES YES
SquirrelMail webmail http://your_server/squirrelmail/ (or /squirrel) YES YES
PostfixAdmin https://your_server/postfixadmin/ NO YES
phpMyAdmin https://your_server/phpmyadmin/ (or /mysql) NO YES
phpLDAPAdmin https://your_server/ldap/ (or /phpldapadmin) NO YES
Awstats https://your_server/awstats/ NO YES

Now you can login and send your first mail to any other account for testing.


No comments: