Email forwarding in iRedMail having only Open-Source iRedAdmin Panel

ZPanel has a graphical admin interface which enables email administrators to easily setup email forwarding per user and per domain.  However, the open-source community version of iRedAdmin panel interface does not contain this same capability.  Only the iRedAdmin Pro version enables administrators to setup email forwarding.

iRedMail and ZPanel each utilize the Postfix email service.  Consequently, if both use a MySql database as their back-end to store user email configurations, then each of their MySql database table structures will be quite similar.  Certain fields of the database tables may be a bit dissimilar.

In order to manually configure an email address to forward all received email (and leave a copy of the email on the server) you must use PhpMyAdmin to edit email box records within the ‘goto’ field of the ‘alias’ table of the ‘vmail’ database.

Example — Before Editing the Record:

address field value — user@maildomain.com
goto field value — user@maildomain.com

Example — After Editing the Record to Provide Forwarding:

address field value — user@maildomain.com
goto field value — user@fwd-domain.com,user@maildomain.com

Notice that the email address where you will forward the email is inserted as the first address in the ‘goto’ field, followed by a comma, and followed by the original email box address.  This configuration keeps each received email in the original mailbox (user@maildomain.com) on the server and forwards a copy of it to the forwarding email address (user@fwd-domain.com).

Applying the Knock-Down

[fvplayer src=’http://www.sheldonsblog.com/wp-content/uploads/2013/08/2013-08-05-14.37.51.mp4′ width=640 height=480 splash=’http://www.sheldonsblog.com/wp-content/uploads/2013/08/2013-08-05-14.37.51.splash.jpg’ splashend=show]

Conect to Ubuntu via Windows Remote Desktop Protocol

Install xRDP on Ubuntu 12.04

Open a terminal window CTRL+ALT+T

sudo apt-get install xrdp (enter)
answer Y(es) when promted

After installing xRDP, make sure Ubuntu xRDP is listening on Tcp Port 3389. Somehow it proxies to 5210. Enter this at the terminal:

netstat -an | grep “LISTEN ” | grep “:3389”

Make sure that your router is port forwarding TCP port 3389 to the lan IP of your Ubuntu.

From Windows 7, click Start, Programs, Accessories, and select Remote Desktop Connection. Enter the router public IP or fully qualified Hostname.DomainName.com of your Ubuntu server. No username or password is necessary at this point. Click connect.

You should go past the windows warning to allow desktop connection.

At the Screen that says Login to xrdp, Make sure the module in the dropdown list is sesman-Xvnc. Enter your username or root, enter your password, and click OK.

You should connect.

If you only achieve a desktop background, without side or top Ubuntu desktop menu items, then you may need to install Ubuntu gnome session fallback or somehow make 2d the default for xRDP connections rather than Unity 3d.

So, if you have a problem connecting, run the commands below and restart Ubuntu, and try connecting again.

echo “gnome-session –session=ubuntu-2d” > ~/.xsession

Or install gnome session fallback.

sudo apt-get install gnome-session-fallback

Here are the links references that I must credit as the configuration resources for the instructions and content of this post:

http://www.liberiangeek.net/2012/05/connect-to-ubuntu-12-04-precise-pangolin-via-windows-remote-desktop/

http://askubuntu.com/questions/234856/unable-to-do-remote-desktop-using-xrdp

http://www.upubuntu.com/2012/01/how-to-open-specific-port-under-ubuntu.html

Setting Fully Qualified Domain Name (FQDN) in Ubuntu

In Ubuntu, open a terminal window.  Log into terminal as your username.  Enter your password when requested.  Switch to the root super user as follows:

sudo -s (enter)
input your password when requested (enter)

Change to the /etc directory as follows:

cd /etc

The ‘hostname’ file will contain your short hostname, such as mx1.

Check the current hostname by entering the hostname command, and the hostname might be something like ‘mx1’ — as follows:

hostname (enter)
mx1

Your fully qualified domain hostname should be something like mx1.yourdomain.com.  Check the current FQDN hostname with the -f option, as follows:

hostname -f (enter)
mx1

The ‘hosts’ file should be edited to insert your FQDN as well.  Using the PICO text editor, open the hosts file to be edited as follows:

pico hosts (enter)

Change the second line of the hosts file from this:
127.0.0.1    localhost
127.0.1.1     mx1

To this:
127.0.0.1    localhost
127.0.1.1     mx1.yourdomain.com     mx1

Then save the hosts file as follows:
CTRL+X
(y)es
hosts (enter)

Now check the fully qualified domain hostname, as follows:

hostname -f (enter)
mx1.yourdomain.com

Check the hostname, which should still be ‘mx1’

hostnamemx1

Escape from the terminal window:

Exit (enter)

Exit (enter)

Installed DeepOfix Email Server which shows missing operating system on Dell Dimension 2400

After downloading and installing DeepOfix Email Server (including GNU/Linux – Squeeze – Operating System), upon first boot it shows “missing operating system – press any key to reboot” on Dell Dimension 2400 with new 160GB Seagate PATA 100 drive and 2GB RAM.  I installed it 6 times, after wiping the hard drive and removing partitions and building MBR, etc., to no avail.

So, I installed Ubuntu Desktop 12.04.02 on the same hard drive.  It booted on the first try and runs like a charm.

Some type of software driver on the DeepOfix must be lacking.  Before installing the new IDE 100 PATA drive, I first installed DeepOfix on a new 160GB SATA drive attached to a local SATA PCI add-on card, but the installed O/S would not boot.  DeepOfix detected and installed itself to the SATA drive, but, upon first restart, the PCI SATA controller and SATA drive were not supported by this particular linux operating system.

I was really looking forward to using the Easy Push Manager graphical interface on the Mail Server.  Although, I didn’t actually like the idea that the email server came pre-configured with Squirrel Mail web mail rather than Roundcube web mail interface.

I will search for an alternative email server to run on Ubuntu.  Maybe iRedMail open source email server will work.  Stay tuned.