ThunderBird 2.x.x.x Manual Installation

1. Download ThunderBird 2.x.x.x here
2. Place the file in /opt
3. tar -xvzf thunderbird 2.x.x.x
4. Create a symbolic link using :
ln -s /opt/thunderbird/thunderbird
/usr/local/bin/thunderbird (Must be root or use sudo)
5. Create a menu item at /usr/share/applications using the command :
vi thunderbird.desktop
6. Add the content below in the thunderbird.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Thunderbird
Comment=Thunderbird Mail Client
Exec=thunderbird
Icon=/opt/thunderbird/icons/mozicon16.xpm
StartupNotify=true
Terminal=false
Type=Application
Categories=Applications;Network

Thats All. Now you can access to the Thunderbird from your desktop menu.

chattr in Linux

chattr is known as one of the permission util to set additional attributes to file.This util even can create a magic by setting a file as an immutable which root can delete the file if he wish to.

First of all, the common commands in using chattrs are + and -

chattr +i ( to set the attribute)

chattr -i ( to unset the attribute)

For example :
chattr +i test.odt ( To set the immutable permission )
chattr -i test.odt ( To unset the immutable permission )

A normal ls -l will not show the attributes that chattr sets.
So we use lsattr to see them.

To know more about other available attributes, check it here

Migration Procedures from Traditional mbox(postfix) to Dbmail

1. Setup a new server (e.g: server_new)
- installed with mysql,dbmail-x.x.x

2. Create users using the command below:
dbmail-users -a "user_name" -w "password" -p "encryption mode" -s
"username@mailserver"

For example :
dbmail-users -a john -w 123456 -p md5-base64 -s john@mycompany.com

3. Copy the mail which need to be migrated from the old server to new server (server_new). Access to the folder/directory where the copied mails will be
placed and run the command below.

a) To migrate the inbox messages :
scp -prv root@old_server:/var/spool/mail/user

For example :
scp -prv root@old_server:/var/spool/mail/john

b) To migrate other folder messages :
scp -prv root@old_server:/home/user/mails/folder

For example :
scp -prv root@old_server:/home/john/mails/saved-messages

4. From the copied folder/directory, migrate the messages using the command
below:

/dbmail installed directory/dbmail-x.x.x/contrib/mailbox2dbmail/mailbox2dbmail
--user "user" --mail "source_mail" --box "destination_mail" -t mbox

For example :

/dbmail installed directory/dbmail-x.x.x/contrib/mailbox2dbmail/mailbox2dbmail
--user john --mail saved-messages --box saved-messages -t mbox

* Repeat the command by just changing the "source mail" and "destination_mail"
to migrate various folders.