Thursday, February 20, 2014

dumptoIMAP.pl

#!/usr/bin/perl#  $Header: /mhub4/sources/imap-tools/dumptoIMAP.pl,v 1.4 2012/02/09 15:34:55 rick Exp $use Socket;use IO::Socket;use FileHandle;use File::Find;use Fcntl;use Getopt::Std;init();connectToHost($imapHost, \$conn);unless ( login($imapUser,$imapPwd, $conn) ) {    Log("Check your username and password");    print STDOUT "Login failed: Check your username and password\n";    exit;}Log("Copying messages from $dir to $mbx folder on the IMAP server");get_messages( $dir, \@msgs );foreach $_ ( @msgs ) {   my $msg; my $date;   Log("Opening $_");   unless ( open(F, "<$_") ) {      Log("Error opening $_: $!");      next;   }   Log("Opened...

imapdump.pl

#!/usr/bin/perl# $Header: /mhub4/sources/imap-tools/imapdump.pl,v 1.12 2011/10/26 15:26:37 rick Exp $########################################################################   Program name    imapdump.pl                                       ##   Written by      Rick Sanders                                      ##   Date           ...

Thursday, January 30, 2014

How to change the IP address on Linux

We already have an Ubuntu 9.04 server which is our email server and we also control sharing of Internet with it. A couple of days back our Dell server failed.So we are trying the installation of Ubuntu 12.04. We had put the same IP address that we normally use for the Linux server but meanwhile we managed to get a machine up with the hard disk from our server which is now down. So we needed to know how to change the IP address on Ubuntu 12.04 to something else now. Run the following commands and it will do the trick. sudo su ifconfig eth0 192.168.100.101 netmask 255.255.255.0 Run ifconfig to make sure that the change has taken effect.But this is not all. Edit the following file using the vi editor and change the IP adress here too. vi /etc/network/interfac...
Page 1 of 612345Next