Sunday 22 February 2015

Cpanel SSL 30days warning mails

Your server's SSL certificate for cpanel will expire in less than 30 days

I managed CentOs Server with Cpanel inside.
One day, I receive warning like this:
Your server's SSL certificate for cpanel will expire in less than 30 days. You need to install a new certificate as soon as possible. You can install a new certificate using WHM's "Manage Service SSL Certificates" interface: https://my.server.com:2087/scripts2/manageservicecrts (Main >> Service Configuration >> Manage Service SSL Certificates).

This warning is not indicate a problem in my server. This just a warning that I need to reset SSL certificate on my server. So here the solution to this warning:
  • I Login to my server via WHM.
  • Then I Go to "Service Configuration" menu and then to "Manage Service SSL Certificates" sub menu.
  • I Click "Reset Certificate" button that corresponding to the service which need a new certificate.
  • After that the self signed certificate is renewed for one year ahead.
I hope the above explanation will give solution to all of you too. Do you? Send your experience below

Thursday 29 January 2015

Ezmlm Command Line Reference

 List all email addresses in list



ezmlm-list /path/to/mldir
 
/usr/local/bin/ezmlm/ezmlm-list   /home/vpopmail/domains/example.net/sample-list/
 
Add an email address to the list

ezmlm-sub /path/to/mldir san@test.com
 
/usr/local/bin/ezmlm/ezmlm-sub   /home/vpopmail/domains/example.net/sample-list/
 
 

Remove an email address from the list

ezmlm-unsub /path/to/mldir san@test.com
 
/usr/local/bin/ezmlm/ezmlm-unsub   /home/vpopmail/domains/example.net/sample-list/
 
 

 

Friday 12 September 2014

Install and Configuration OpenSSH in FreeBSD

SSH is a secure version of telnet. It’a a protocol used to access the console or command line for remote system.

1. Installation

localhost# cd /usr/ports/security/openssh-portable

localhost# make config ; make install clean

2.  Configure

localhost# cp /etc/make.conf /etc/make.conf.old

localhost#  echo “NO_OPENSSH = YES” >> /etc/make.conf

localhost# cd /etc/ssh/

localhost# cp sshd_config sshd_config.old

localhost# cp sshd_config-dist ssh_config

localhost# /etc/rc.d/sshd restart

Stopping sshd.

Starting sshd.

localhost#ee /etc/rc.conf

add command :  sshd_enable=”YES”

this command is used to start ssh automatically

3. Testing

localhost# telnet localhost 22

Trying 127.0.0.1…

Connected to localhost.

Escape character is ‘^]’.

SSH-2.0-OpenSSH_5.1p1 FreeBSD-openssh-portable-overwrite-base-5.1.p1,1

press enter to quit. You should now be able to connect with any SSH-capable client and any valid user account other than root.

HowTo: Install or Upgrade Base OpenSSH for FreeBSD

Different methods to get the base installation of OpenSSH to be upgraded or installed.
### PORTS ###
from ports:

cd /usr/ports/security/openssh-portable
make UPDATE_INTREE_OPENSSH=yes
make install
make clean
### OR ###
for OpenSSL:

cd /usr/ports/security/openssl
make -DOPENSSL_OVERWRITE_BASE install
openssl version
for OpenSSH:

cd /usr/ports/security/openssh-portable
make -DOPENSSH_OVERWRITE_BASE=yes install
sshd -V
### PORTUPGRADE ###
for portinstall or portupgrade, prepare the MAKE_ARGS in /usr/local/etc/pkgtools.conf:

vi /usr/local/etc/pkgtools.conf

Look for an empty MAKE_ARGS and add the following to look like this:

MAKE_ARGS = {
'security/openssl' => 'OPENSSL_OVERWRITE_BASE=yes',
'security/openssh-portable' => 'OPENSSH_OVERWRITE_BASE=yes',
}
using portinstall:

portinstall -rRm "OPENSSH_OVERWRITE_BASE=yes" /usr/ports/security/openssh-portable/
using portupgrade:

portupgrade -rR openssh-portable-overwrite-base

Thursday 21 August 2014

Network Monitoring In Linux

#vnStat

vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources. However, in Linux at least a 2.2 series kernel is required.

This program is open source / GPL'ed and can be installed either as root or as a single user. Better instructions are included in the README. Feel free to send comments by email (remove the spamfilter) or try contacting me from irc (Vergo @ IRCNet).


http://humdi.net/vnstat/

Thursday 3 July 2014

Best open source webmail clients

Best open source webmail clients


There are too many webmail clients are available on web.
Choosing best out of them is quit difficult task for any one.
After exploring tens of webmail clients, I will vote for following webmail client as top 3  webmail clients:
  • Roundcube: I would rate it as the best and easy to install. It has rich text editor and clent side filtering support. Also it hase good web interface.
RoundCube
RoundCube
  • Zimbra: Not explored much about, but based on futures its quite a popular webmail
Zimbra
  • SquirrelMail: Its basic webmail with basic web interface. There is no rich text editor support. There are lot of plugins available for SquirrelMail. 
SquirrelMail
SquirrelMail
  • RainLoop: Recently I seen this webmail client so thought to share. UI is good in RailLoop. I am not tested it but when I walk through installation procedure its looking straight forward and easy.
RainLoop WebMail
RainLoop WebMail
All above webmails are open source.