Archive for March, 2010

How to disable anonymous FTP in EnsimPro for Linux

By deafult the configuration file is: /etc/proftpd.conf has the last line as:

include “/etc/proftpd/anonymousftp”

which means anonymous ftp is enabled.

Upon commenting this out with a ” # ” and restarting the service ,anonymous ftp is disabled.

Prevention of infinite mail loop with Auto Responder

This mostly happens when the mail account using autoreponder gets lot of spam mail, and as many of these spam mails use bogus From addresses, this account also recieves many mailer-daemon responses while replying to these bogus email addresses.

1) Edit /home/virtual/FILESYSTEMTEMPLATE/sendmail/etc/smrsh/responder.sh (This file is hardlinked into all the domains having autoresponder enabled as
/home/virtual/[domainname]/etc/smrsh/responder.sh)

and comment out:

${PYTHONBIN} ${RUNAPP} $@ > /dev/null 2>&1

so it looks like:

# ${PYTHONBIN} ${RUNAPP} $@ > /dev/null 2>&1

Then insert after it:

procmail -a “$*” /etc/auto.rc

2) Create the file called auto.rc with the following lines:

:0
* ^FROM_MAILER
/dev/null
:0
| /usr/bin/python2 /usr/lib/opcenter/sendmail/responder.pyc $1

Copy this file to /home/virtual/[domainname]/etc/ for all the domains using autoresponder.
(You may want to use virtDomain.sh to automatically copy or create this file when ever a new domain is added)

Now anything coming from MAILER-DAEMON or postmaster that goes to the responder will be sent to /dev/null.

Anything else will be sent to the responder.

Reference: http://parallels.com

SBDavid

Channel Bonding Interfaces

Channel Bonding Interfaces

Linux allows administrators to bind multiple network interfaces together into a single channel using the bonding kernel module and a special network interface called a channel bonding interface. Channel bonding enables two or more network interfaces to act as one, simultaneously increasing the bandwidth and providing redundancy.

To create a channel bonding interface, create a file in the /etc/sysconfig/network-scripts/ directory called ifcfg-bond[N], replacing [N] with the number for the interface, such as 0.

The contents of the file can be identical to whatever type of interface that is getting bonded, such as an Ethernet interface. The only difference is that the DEVICE= directive must be bond[N], replacing [N] with the number for the interface.

The following is a sample channel bonding configuration file:

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=no

For example, if channel bonding two Ethernet interfaces, both eth0 and eth1 may look like the following example:

DEVICE=eth[N]
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

In this example, replace [N] with the numerical value for the interface.

500 error in Ensim interface if python-kid is upgraded

To resolve this issue.

For RHEL4, Cent OS 4.1, Cent OS 4.2, Cent OS 4.3, Cent OS 4.4:

Download:

http://download.pro.parallels.com/download/pro/linux/kb/2441/rhel4/removeTemplateBytecode.pyc

Installation Procedure:

Get the binary from the locations mentioned above.

Execute the binary

python removeTemplateBytecode.pyc
service epld restart

Reference: http://parallels.com

Enable ImageMagick perl module for perl/cgi script.

1. Install ImageMagick-perl package corresponding to ImageMagick rpm installed on the server shipped by OS vendor.

e.g.

# rpm -q ImageMagick
ImageMagick-6.0.7.1-12
#rpm -ivh ImageMagick-perl-6.0.7.1-12.i386.rpm

OR

1. You can use up2date or yum to install/upgrade ImageMagick-perl package

# up2date ImageMagick-perl

or

#yum install ImageMagick-perl

2. Run ensim through maintenance mode.

set_pre_maintenance
set_maintenance
set_post_maintenance
service webppliance restart

Reference: http://parallels.com

« Prev - Next »