Install AtMail Open on Ubuntu Server 9.04

Download AtMailOpen

# wget -c http://atmail.org/download/atmailopen.tgz

Extract and put on the right place

# tar xvzf atmailopen.tgz

# mv atmailopen /var/www/nginx-default/

# chown -R www-data:www-data /var/www/nginx-default/atmailopen/

Create mysql database and assign user

# mysql -uroot -p

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 43
Server version: 5.1.31-1ubuntu2 (Ubuntu)

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database atmail;
Query OK, 1 row affected (0.07 sec)

mysql> grant all privileges on atmail.* to atmail@localhost identified by’atmailpass’ with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

Edit /etc/nginx/sites-available/default

Add these lines

server {
listen          80;
server_name     mail3.digitalfusi.com;

location / {
index index.php index.html;
root  /var/www/nginx-default/atmailopen;
}
location ~ \.php$ {
fastcgi_pass    127.0.0.1:9000;
fastcgi_index   index.php;
fastcgi_param     SCRIPT_FILENAME     /var/www/nginx-default/atmailopen$fastcgi_script_name;
include      fastcgi_params;
}

}

Save and restart nginx.

# /etc/init.d/nginx restart

Open http://mail3.digitalfusi.com from browser.

atmail1

dasd

atmail2

Just follow the screen and fill required information.

atmail3

atmail4

Continue till finish.

Incoming search terms for the article:

  • atmail postfix
  • atmail open configuration
  • instalar atmail
  • como instalar atmail
  • Install Atmail Centos
  • atmail ubuntu
  • postfix atmail
  • atmailopen ubuntu
  • atmailopen install
  • ubuntu atmail

Install RoundCube in Ubuntu 9.04

Install Roundcube via source:

# wget http://nchc.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2.1.tar.gz

# tar -xvzf roundcubemail-0.2.1.tar.gz –directory=/var/www/nginx-default/

# cd /var/www/nginx-default/roundcubemail-0.2.1/

# chown -R www-data:www-data temp logs

Create MySQL database and user for Roundcube:

# mysql -u root -p mysql

Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 45
Server version: 5.1.31-1ubuntu2 (Ubuntu)

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database roundcube;
Query OK, 1 row affected (0.09 sec)

mysql> grant all privileges on roundcube.* to roundcube@localhost identified by ’123456′ with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

Filling roundcube database :

# cd /var/www/nginx-default/roundcubemail-0.2.1/SQL/

# mysql -uroundcube -p123456 roundcube < mysql.initial.sql

# cd /var/www/nginx-default/roundcubemail-0.2.1/config/

# mv db.inc.php.dist  db.inc.php

# mv main.inc.php.dist main.inc.php

Edit db.inc.php and adjust :

$rcmail_config['db_dsnw'] = ‘mysql://roundcube:123456@unix(/tmp/mysql.sock)/roundcube’;

Edit main.inc.php and adjust :

$rcmail_config['default_host'] = ‘ssl://localhost:993‘;
$rcmail_config['default_port'] = 993;
$rcmail_config['useragent'] = ‘RoundCube Webmail‘;

Secure config files :

# chmod 600 /var/www/nginx-default/roundcubemail-0.2.1/config/*

Add new entry in bind zone files for mail2.digitalfusi.com and add these entry :

server {
listen          80;
server_name     mail2.digitalfusi.com;

location / {
index index.php index.html;
root  /var/www/nginx-default/roundcubemail-0.2.1;
}
location ~ \.php$ {
fastcgi_pass    127.0.0.1:9000;
fastcgi_index   index.php;
fastcgi_param     SCRIPT_FILENAME     /var/www/nginx-default/roundcubemail-0.2.1$fastcgi_script_name;
include      fastcgi_params;
}

}

in /etc/nginx/sites-enabled/default .

Open mail2.digitalfusi.com to see it work.

roundcube

Incoming search terms for the article:

  • roundcube ubuntu
  • ubuntu roundcube
  • roundcube nginx
  • install roundcube ubuntu
  • nginx roundcube
  • ubuntu roundcube install
  • ubuntu install roundcube
  • roundcube install ubuntu
  • postfix dovecot Roundcube ubuntu
  • how to install Roundcube on Ubuntu

Change IP Address of Ubuntu Server

To see current configuration :

# cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

eth0 need fixed ip address, so change it into :

auto eth0
iface eth0 inet static
address 192.168.12.103
netmask 255.255.255.0
network 192.168.12.0
broadcast 192.168.12.255
gateway 192.168.12.1

Save and restart networking.

/etc/init.d/networking restart

Incoming search terms for the article:

  • ganti ip ubuntu
  • ganti ip di ubuntu server
  • ganti ip ubuntu server
  • ganti ip di ubuntu
  • merubah ip ubuntu server
  • change ip ubuntu server
  • merubah ip di ubuntu server
  • mengganti ip di ubuntu
  • mengganti ip ubuntu server
  • merubah ip di ubuntu

Install Squirrelmail

Install :

# apt-get install squirrelmail

Ups, I prefer latest version so I remove it.

# apt-get remove squirrelmail

Install from source :

# wget -c http://internode.dl.sourceforge.net/sourceforge/squirrelmail/squirrelmail-1.4.17.tar.gz

Extract :

# tar -xvzf squirrelmail-1.4.17.tar.gz –directory=/var/www/nginx-default

# mv /var/www/nginx-default/squirrelmail-1.4.17 /var/www/nginx-default/squirrelmail

Configure :

# cd /var/www/nginx-default/squirrelmail

# ./configure

Options :

1. Choose option “2. Server Settings“.
2. Choose option “1. Domain” and change it to your domain name.
3. Choose option “A. Update IMAP Settings” then option “5. IMAP Port” and change it to “993“.
4. Choose option “7. Secure IMAP (TLS)” and change it to “true” by pressing “y“.
5. Choose option “8. Server software” then type”dovecot” followed by the “ENTER” to set it.
6. Press “s” followed by the “ENTER” key to save.
7. Press “q” followed by the “ENTER” key to quit.

Create attachment folder :

# mkdir -p /var/local/squirrelmail/data

# chown -R www-data /var/local/squirrelmail/data

# mkdir -p /var/local/squirrelmail/attach/
# chown -R www-data /var/local/squirrelmail/attach/

Update  /etc/nginx/sites-enabled/default :

server {
listen          80;
server_name     mail.digitalfusi.com;

location / {
index index.php index.html;
root  /var/www/nginx-default/squirrelmail;
}
location ~ \.php$ {
fastcgi_pass    127.0.0.1:9000;
fastcgi_index   index.php;
fastcgi_param     SCRIPT_FILENAME     /var/www/nginx-default/squirrelmail$fastcgi_script_name;
include      fastcgi_params;
}

}

Edit /etc/php5/cgi/php.ini

Set magic_quotes_gpc = Off

save and restart nginx.

Finish,

http://mail.digitalfusi.com ready to serve.

squirrel

Incoming search terms for the article:

  • squirrelmail nginx
  • nginx squirrelmail
  • install Squirrelmail ubuntu
  • squirrelmail
  • squirrelmail install ubuntu
  • squirrelmail ubuntu server
  • ubuntu install squirrelmail
  • squirrelmail ubuntu server installation
  • install squirrelmail ubuntu server
  • ubuntu server squirrelmail

Checking Connection

When computer restart everything get applied, checking internet connection is main thing to do :

$ sudo su

[sudo] password for alamsyah:

Enter same password as user ‘alamsyah’ to get into root session.

Checking if internet connected using ping :

# ping yahoo.com

PING yahoo.com (69.147.114.224) 56(84) bytes of data.
64 bytes from b1.www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=1 ttl=48 time=447 ms
64 bytes from b1.www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=2 ttl=48 time=369 ms
64 bytes from b1.www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=3 ttl=48 time=365 ms
^C
— yahoo.com ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2100ms
rtt min/avg/max/mdev = 365.620/394.291/447.984/37.999 ms
#

Update Ubuntu Server

apt-get update is our best friend :-)

# apt-get update

Hit http://us.archive.ubuntu.com jaunty Release.gpg
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US
Get:1 http://security.ubuntu.com jaunty-security Release.gpg [189B]
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Get:2 http://us.archive.ubuntu.com jaunty-updates Release.gpg [189B]
Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Get:3 http://security.ubuntu.com jaunty-security Release [49.6kB]
Hit http://us.archive.ubuntu.com jaunty Release
Get:4 http://us.archive.ubuntu.com jaunty-updates Release [49.6kB]
Hit http://us.archive.ubuntu.com jaunty/main Packages
Hit http://us.archive.ubuntu.com jaunty/restricted Packages
Hit http://us.archive.ubuntu.com jaunty/main Sources
Hit http://us.archive.ubuntu.com jaunty/restricted Sources
Hit http://us.archive.ubuntu.com jaunty/universe Packages
Hit http://us.archive.ubuntu.com jaunty/universe Sources
Hit http://us.archive.ubuntu.com jaunty/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty/multiverse Sources
Get:5 http://us.archive.ubuntu.com jaunty-updates/main Packages [16.8kB]
Get:6 http://security.ubuntu.com jaunty-security/main Packages [11.6kB]
Get:7 http://us.archive.ubuntu.com jaunty-updates/restricted Packages [14B]
Get:8 http://us.archive.ubuntu.com jaunty-updates/main Sources [4756B]
Get:9 http://us.archive.ubuntu.com jaunty-updates/restricted Sources [14B]
Get:10 http://us.archive.ubuntu.com jaunty-updates/universe Packages [6078B]
Get:11 http://us.archive.ubuntu.com jaunty-updates/universe Sources [14B]
Get:12 http://us.archive.ubuntu.com jaunty-updates/multiverse Packages [14B]
Get:13 http://us.archive.ubuntu.com jaunty-updates/multiverse Sources [14B]
Get:14 http://security.ubuntu.com jaunty-security/restricted Packages [14B]
Get:15 http://security.ubuntu.com jaunty-security/main Sources [3370B]
Get:16 http://security.ubuntu.com jaunty-security/restricted Sources [14B]
Get:17 http://security.ubuntu.com jaunty-security/universe Packages [4143B]
Get:18 http://security.ubuntu.com jaunty-security/universe Sources [14B]
Get:19 http://security.ubuntu.com jaunty-security/multiverse Packages [14B]
Get:20 http://security.ubuntu.com jaunty-security/multiverse Sources [14B]
Fetched 147kB in 10s (14.6kB/s)
Reading package lists… Done

Upgrade package or software installed

# apt-get upgrade

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages have been kept back:
bind9 bind9-host bind9utils clamav clamav-freshclam dnsutils grub libbind9-40 libisccc40 libisccfg40 liblwres40 linux-image-server linux-server ntfs-3g
python python-minimal update-manager-core
The following packages will be upgraded:
clamav-base libcups2 libcupsimage2 libfreetype6 php-pear php5-cgi php5-cli php5-common php5-curl php5-gd php5-mhash php5-mysql php5-pspell php5-recode
php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
19 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
Need to get 30.4MB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com jaunty-updates/main clamav-base 0.95.1+dfsg-1ubuntu1.1 [21.4MB]
0% [1 clamav-base 61982/21.4MB 0%]

The process will continue till all packages upgraded successfully.

Incoming search terms for the article:

  • phpxmlrpc ubuntu install
  • time=365ms TTL=48

Install Jaunty Server part II

At previous stepI forgot to tell that I use Bridged Network in Network setup.

ubuntu1

When I choose ‘bridged’  DHCP offer will fail, click Continue to configure network manually.

ubuntu1

ubuntu1

I enter ip address ’192.168.12.103′, click on Continue.

ubuntu1

Enter netmask 255.255.255.0

click Continue.

ubuntu1

Enter Gateway information.

ubuntu1

Enter Name server address

ubuntu1

Choose ‘No Automatic updates

ubuntu1

Process will continue till finish.

ubuntu1


ubuntu1


Install Jaunty Server part I

After setting virtual machine, it’s time to get start :-)

Click start in virtualbox

Choose Language, I pick English.

install1

Choose Install Ubuntu Server.

install1

Pick English

install1

Click United States

install1

I prefer not to detect keyboard layout as I use standard keyboard.

install1

Pick USA

install1

install1

Process will continue

install1

Hostname, I enter mail.digitalfusi.com

Pick continue.

install1

Configure the clock

install1

Important step, partition disk.

I choose guided – use entire disk.

install1

Select disk to partition.

install1

Let it as is, system automatically choose the best one.

install1

Install process continue.

install1

Click here to see more process.

Setting Virtual Machine

In previous section, virtual machine has been created and now its component need some change in the setting :

1. CD/DVD Drive

If you have CD in your Host CD/DVD Drive you may skip this section.

If you only have iso file use this steps :

Tick on ‘Mount CD/DVD Drive.

svb11

Pick iso files by clicking on the picture.

svb2

Locate the iso file.

svb3

Click ‘Select’ to move on.

Followed by click OK to save your configuration on CD/DVD drive.

New Virtual Disk Wizard

New Virtual Disk Wizard

vb5

Click Next to continue

vb6

Choose ‘Dynamically expanding storage’.

Click Next.

vb7

I use 8 GB for this experiment. Click Next.

vb8

Click Finish.

Next

Install Ubuntu Server 9.04 in VirtualBox

After get iso or ubuntu server 9.04 cd next step is install it.

For simulating purpose I use VirtualBox in my Windows XP.

Preparation :

1. Install virtualbox ( I use version 2.2 ).

2. Create new machine

Click Machine -> New

vb1

Click Next.

vb2

Fill ‘Ubuntu Server 9.04′ in Name section.

Choose Operating System : Linux

Version : Ubuntu

Click Next.

vb3

Type in the box memory that you allocate for virtual machine.

Click Next

vb4

Pick ‘create new hard disk’ then click Next.

Continue to ‘New Virtual Disk Wizard

When all done, you’ll see this summary.

vb9

Incoming search terms for the article:

  • virtualbox mail server
  • ubuntu server
  • virtualbox postfix
  • postfix virtualbox
  • virtualbox mailserver
  • ubuntu 9 server
  • mailserver virtualbox
  • Email server VirtualBox
  • iso vmware postfix
  • Pages

  • Download Ubuntu

  • Download Fedora

  • Tags

  • Categories

    • Translate to: