Monday, October 25, 2010

Migrate / Backup your mails to gmail / google apps.

Hi All...

Here are some worked examples on how to do the synchronization to google hosted email system.

Step 1.
 Create directory to where you can store password files.

Step 2.
Make a list of password files. (A password file is one with only the password stored in it)

Step 3.
Check the version of imap-sync using in your computer. The synchronization works only with versions above 1.261. If you are using debian / ubuntu use the below command to check the version.

apt-cache policy imapsync
imapsync:
Installed: 1.286+dfsg-3ubuntu1
Candidate: 1.286+dfsg-3ubuntu1

Step 4.
After the installation of imapsync go to the password created directory.

Step 5.
To synchronize the mail from any domain to gmail OR google hosted apps use the following command. (Make sure imap has been enabled in the Gmail account)

$ imapsync --host1 mail.domain.com --user1 source@domain.com --noauthmd5 --passfile1 /path/to/passwordfile --host2 imap.gmail.com --user2 destination@domain.com --passfile2 /path/to/passwordfile --port2 993 --ssl2 --folder 'INBOX' 'INBOX.Sent'

Step 6.
If the given credentials are correct, the command will look like the following.


with perl 5.10.1
Mail::IMAPClient  3.21
IO::Socket        1.31
IO::Socket::SSL
Digest::MD5       2.39
Digest::HMAC_MD5
Term::ReadKey     2.30
Date::Manip
with perl 5.10.1Mail::IMAPClient  3.21IO::Socket        1.31IO::Socket::SSL   Digest::MD5       2.39Digest::HMAC_MD5 Term::ReadKey     2.30Date::Manip

/usr/bin/imapsync --host1 mail.domain.com --user1 source@domain.com --noauthmd5 --passfile1 passwordfile --host2 imap.gmail.com --user2 source@domain.com --passfile2 passwordfile --port2 993 --ssl2 --folder INBOX INBOX.Sent
Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
TimeZone:[asia/kolkata]
Will try to use LOGIN authentication on host1
Will try to use LOGIN authentication on host2
From imap server [mail.domain.com] port [143] user [source@domain.com]
To   imap server [imap.gmail.com] port [993] user [source@domain.com]
Banner: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc.  See COPYING for distribution information.


Host mail.domain.com says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [mail.domain.com] with user [source@domain.com] auth [LOGIN]
Success login on [mail.domain.com] with user [source@domain.com] auth [LOGIN]
Banner: * OK Gimap ready for requests from 12 x26if996498wfd.20
Host imap.gmail.com says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [imap.gmail.com] with user [source@domain.com] auth [LOGIN]
host1: state Authenticated
host2: state Authenticated
From separator and prefix: [.][INBOX.]
To   separator and prefix: [/][]
++++ Calculating sizes ++++
From Folder [INBOX]                             Size:  11375813 Messages:    34
Total size: 11375813
Total messages: 34
Time: 15 s
++++ Calculating sizes ++++
To   Folder [INBOX]                             Size:      5626 Messages:     2
Total size: 5626
Total messages: 2
Time: 2 s
++++ Listing folders ++++
From folders list: [INBOX]
To   folders list: [Follow up] [INBOX] [Misc] [Priority] [[Gmail]] [[Gmail]/All Mail] [[Gmail]/Drafts] [[Gmail]/Sent Mail] [[Gmail]/Spam] [[Gmail]/Starred] [[Gmail]/Trash]
++++ Looping on each folder ++++
From Folder [INBOX]
To   Folder [INBOX]
++++ From [INBOX] Parse 1 ++++
++++ To   [INBOX] Parse 1 ++++
++++ Verifying [INBOX] -> [INBOX] ++++
Time: 4 s
++++ End looping on each folder ++++
++++ Statistics ++++
Time                   : 20 sec
Messages transferred   : 0
Messages skipped       : 0
Total bytes transferred: 0
Total bytes skipped    : 0
Total bytes error      : 0
Detected 0 errors

Step 7.
Check your mail box to see if the mails have been synchronized.

Happy Migrating...

Project Pier Update User Password


Hello,

In the table called pp_users, you will find the line corresponding to the admin account. Note the salt value from the table pp_user Or you can copy / paste the salt value directly into the mysql update command.
To modify the password of the admin / user account, use the below mysql statement.
Here in the below mysql statement,
sha1 (Function)
(salt value)
adminpassword (user password)
update pp_users SET token = sha1(“”) where username = ‘admin’;



Sunday, August 1, 2010

Howto: firefox flash upgrade in linux

Upgrading of firefox flash plugin on linux.

1. Download flash plugin file from adobe website.

2. Select tar.gz for linux.

3. Unzip the downloaded file.

4. Copy the libnullplugin.so to /usr/lib/firefox/plugins/

5. Fire the browser firefox & check the youtube.

Watch it.. Enjoy!!!

Howto:Firefox upgrade in linux

Question :  How to upgrade my firefox in linux? 

Note1 :- You can do easily do the upgrade your firefox browser, After doing you may loose your bookmarks, browsing history and firefox plugins,extensions.

Note2 :- Before upgrading your browser better make backup of your bookmarks.

Question : How to backup of bookmarks in firefox.

Click on bookmarks --> Organize Bookmarks (Ctrl+Shift+O) --> Click on Import and Backup --> Select Export Html

The backed-up html file will be stored in your browser specified directory.

Question :- How to install new firefox?


Run the following commands as 'ROOT'

1. Download new firefox.

2. Unzip the downloaded file using following commands.

tar -xjf filename.tar.bz2

3. Backup your old firefox directory to firefox-backup

4. Copy the unzipped firefox directory to /usr/lib/firefox

5. Check the version of browser by firing firefox browser

Help --> About Mozilla Firefox

Now you have upgraded your browser. Happy Browsing.. :-)

Friday, July 23, 2010

Disabling Console Beep Sound in xfce | gnome | openbox | fluxbox

Hi All..

After migrating from gnome to xfce, I was not happy because of console beep sound, It took a dat to me to disable console beep. I was totally forgotten there is command like modprobe.

So run this command to disable console beep..

modprobe  -r   pcspkr

To add it back

modprobe   -a  pcspkr

Your beep sound will be disabled.

Happy xfce..

Thursday, June 24, 2010

Postfix sender_bcc maps

Hi,

Simple steps to configure sender_bcc in postfix OR zimbra postfix.


1. Create a file in /opt/zimbra/postfix/conf/virtual.tab

2. Postmap the file. Follow as below.

3. Add the email address user@domain.com  123@domain.com (here 123@domain.com is just a dummy address).

exampler :-  user@domain.com     123@domain.com

4.  In virtual.tab add the email address to which account the mail copies to be sent. 123@domain.com abc@domain@.com, xyz@gmail.com, hdg@hotmail.com

5. Add the below line to main.cf
virtual_alias_maps = proxy:ldap:/opt/zimbra/conf/ldap-vam.cf,hash:/opt/zimbra/postfix/conf/virtual.tab

Now the mail should be able to get a bcc copy of mail.

Enjoy...

Tuesday, December 29, 2009

Zimbra Installation on Debian, Ubuntu & Linux

Hi All...

Zimbra installation on any linux is very easy. It keeps system administrator in peace. If you really want to feel it INSTALL IT ;-) Enjoy.

  • Download Zimbra OS from http://www.zimbra.com/community/downloads.html
  • Before configuring setup the dns for the domain you want to configure the email on local machine or any dns servers. Example : Everydns, Xname.org.. ( This may take few hours).
  • Installation of bind ( Dns ) Configuration on debian / ubuntu.
  • apt-get install bind ( Installs bind packages on debian box )
  • add your ip address to /etc/hosts.
  • The first line of the file defines the IP address of localhost as follows: 127.0.0.1 localhost.localdomain localhost
  • The second line will include the private IP address and hostname of the server: 1.2.3.4(Public Ip Address) mail.domain-name.com mail
ex :- 127.0.0.1 localhost.localdomain localhost
Your Public-Ip-Address mail.domain-name.com mail

  • Go To /etc/bind/ copy db.local file /var/cache/bind/'domain'.db = ( 'domain' = Your Domain Name. Any .com , .in, .org,) It would be better to configuring on local machine as dns server take few hours to resolve.
  • Change the domain name and ip address. ( Dont forget to add your ip add in /etc/hosts ).
  • Tip :- Properly mention the ( DOT (.) , Open Bracket & Close Bracket () in the /var/cache/bind/domain-name.db file. These are the main important things techies will go mad. ;-) unless they are very professional.
  • Add the domain zone in /etc/bind/named.conf.local
zone "example.com" {
type master;
file "/var/cache/bind/example.com.db"
};

; BIND data file for local loopback interface

;
$TTL 604800
@ IN SOA domain-name.com. root.domain-name.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS example.com.
@ IN A 127.0.0.1(Public IP Add)
mx IN A 127.0.0.1(Public IP Add)
mail IN A 127.0.0.1(Public IP Add)
@ IN MX 5 mx.example.com.

  • Try to dig(Resolve) your domain name locally it should point your ip address.Once verified you can go head with next step. If you find any problem check the previous step.
  • Use dig command to check. exaample :- dig domain-name.com, dig domain-name.com mx.
  • Untar the downloaded zimbra file.
tar -xjvf filename.tgz /opt/
  • Before installation of zimbra you may need to install some necessary dependency packages.
libidn11, fetchmail, libgmp3c2, libxml2, libstdc++6, openssl, libltdl3, curl
  • Start installation of ZCS.
Go to /opt/zimbra/ run install.sh file.
             Run ./install.sh
  • After it confirms the dependency packages has been installed and it asks select the ZCS packages to be selected by ckecking " Y ".
Example :- Zimbra Apache, Zimbra Anti-Spam, Zimbra Anti-Virus, Zimbra MTA, Zimbra logger, Zimbra Stats, By Default Zimbra Proxy will be marked as "No". You can make it installable if you need. Please refer configure documentation of zimbra proxy in Zimbra Administration Documentation.
  • It starts unpacking the packages & installs all necessary & selected packages.
  • It asks you to make some changes in the zimbra administration configuration such as https port, username, password, etc..
  • Once done, Configuration will be saved & asks to send zimbra notification. ( You can say "Yes" If you want OR You can "No" too ).
  • Your zimbra mailbox starts working now.
  • Check your zimbra wheather its working properly.
    su - zimbra
zmcontrol status
netstat -antp

  • Finally Reboot your mail machine & check it.
  • Happy Zimbra Mail Server......................... :-)