Saturday, April 12, 2008

How to enable port 26 for SMTP on the server

Please refer the following steps :

1. Login to server WHM. Go to Main >> Service Configuration >> Service Manager
2. At the botom add the number 26 at "exim on another port"
3. In /etc/apf/conf.apf add the port 26 at this line "EG_TCP_CPORTS"
4. apf –r

How to set limit to remove the Frozen Maiils Automatically ?

vi /etc/exim.conf

timeout_frozen_after = 8d ( 8 Days )

/scripts/restartsrv_exim

How to install squirrelmail lanuage package

cd /usr/local/cpanel/base/3rdparty/squirrelmail
wget http://switch.dl.sourceforge.net/sourceforge/squirrelmail/all_locales-1.4.5-20050904.tar.gz
tar -xvzf all_locales-1.4.5-20050904.tar.gz

OR

wget http://easynews.dl.sourceforge.net/sourceforge/squirrelmail/all_locales-1.4.5-20050904.tar.gz

tar -xvzf all_locales-1.4.5-20050904.tar.gz

How to detect spam

tail -f /var/log/exim_mainlog|grep /tmp

tail –f /var/logs/exim_mainlog |grep public_html

tail –f /var/logs/exim_mainlog |grep sendmail

check mail queue

How to configure Logwatch on the server?

vi /etc/log.d/logwatch.conf

Scroll to MailTo =

Replace the lines with

MailTo = root

to

MailTo = support@udsquare.net,wlu@gazzin.com

also change the line

details=Low

to

details=High

How to set _globals off/on?

Just create a .htaccess file in the folder where the script is, and write only this

"php_flag register_globals off"

1

It works for me.

OR

You can also do it this way:

php_value register_globals 0 --------------- for Off

php_value register_globals 1 --------------- for On

This too works.

OR

In general what ever function you want to enable or disable, this is the general format:

php_value function 0 or 1 ---------------for disable or enable respectively.

How to increase ftp upload limit?

a) first check the ftp running ie pure-ftp or pro-ftp.

b) likewise edit the file proftpd.conf or pure-ftpd.conf .

c) edit pure-ftpd.conf

d) search for word “quota”

1. uncomment it and it is in the format 1000:10

The first number is the max number of files. The second number is the max size of megabytes. So 1000:10 limits every user to 1000 files and 10 Mb.