Thursday, December 16, 2010

Debian Etch Sources List Archive

Hello

As we all know, Debian Etch has been no longer supported since feb 2010. But still some machines might be running Debian Etch(Upgradation not feasible). If your searching for any source to install packages to your machine. Ass this below sources in to your sources.list file.

# vim /etc/apt/sources.list

deb http://archive.debian.org/debian/ etch main contrib non-free

# apt-get update

# apt-get install

Enjoy...


How to Restrict postfix recipient in zimbra

Restrict postfix recipient in zimbra

This will show how you can modify postfix to restrict who can send to certain address in your domain such as distribution like team@domain.com.

These change will most likely not persist between upgrades!!!

zimbra/conf/postfix_recipient_restrictions.cf. Also permissions on files created in /opt/zimbra/postfix/conf/ will be changed.

  • Create permitted sender list as zimbra user under /opt/zimbra/postfix/conf/
permitted_sender List :- This file contains domains list OR User mail list, Only protected senders can send mail to this domains OR users.

# vim /opt/zimbra/postfix/conf/permitted_senders

localhost                         OK
myhost.com                    OK
mydomain.com                OK
username@domain.com   OK
  • Create protected recipient file as zimbra user under /opt/zimbra/postfix/conf/
protected_recipients :- This file contains email address that can only receive from permitted senders

# vim /opt/zimbra/postfix/conf/protected_senders

myteam@domain.com                 permitted_senders_list
protect_users@domain.com         permitted_senders_list

  • Include the important setting to /opt/zimbra/postfix/conf/main.cf
permitted_senders_list=check_senders_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
smtpd_restriction_classes = permitted_senders_list,local_only



FYI :- The changes in main.cf will not survive after the upgrade of zimbra.
  • Now add the this restriction on the top of all line.
# vim /opt/zimbra/conf/postfix_recipient_restrictions.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients
  • Reload the settings
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/permitted_senders
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/protected_recipients
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/postfix_recipient_restrictions.cf

/opt/zimbra/postfix/sbin/postfix  reload

FYI :- This configuration can also used in normal postfix..



Thursday, December 9, 2010

Install Nuxeo-DM on Debian Gnu/Linux 5.0 Lenny

Nuxeo DM is an open source document management application and helps to manage and track flow of content.

Intallation instructions for Debian Lenny

Install sun-jdk6 from deb apt source.

# apt-cache search sun-java6-jdk  (This may take some time...)

After the installation of sun-java6-jdk, Add this sources to /etc/apt/sources.list

 "deb http://apt.nuxeo.org/ lucid releases"

Run the following command in the terminal :-

# apt-get update
  # apt-get search nuxeo
  # apt-get install nuxeo-dm-tomcat (This may take some time...)

After the installation, use an editor to update the configuration:

# /etc/nuxeo-dm/nuxeo.conf

Uncomment this line

# JAVA_HOME=/usr/lib/jvm/java-6-sun

And invoke the service

# invoke-rc.d nuxeo-dm \[start\|stop\|status\|restart\]

When the Nuxeo-Dm started, Open this link in the browser

# http://localhost:8080/

Login the Nuxeo using Administrator username and Administrator as password.

Saturday, December 4, 2010

Mplayer play only audio hold video

Hi All,

 Few days back I watched a funny movie and the dialouges were superb and thought of listening again and again as its funny movie.

As I use linux, I just wanted to play the movies audio but not the video in mplayer, after searching from man pages found this.

If you wish to listen only film dialouges run the command  :-

mplayer filename.mpg -vo null 

OR

mplayer -vo null filname.mpg

Try & Enjoy the audio movie :-)





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...