buy tb500

Archive for August, 2009

Delete Spam from Exim Queue

Monday, August 31st, 2009

Spam is a major cause of headache for many people in the world.  Especially server administrators.

Here is a tip to clean up your exim mail queue if its getting to large and full of spam.

Please keep in mind that some legitimate emails may get deleted by this method.  Please use it carefully.  I had more than 2000 emails in my queue, and it was reduced to about 50 after running a few of these.

First, run

grep -R -l [SPAM] /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm

The highlighted word will be used in a grep search and replace and all messages matching that will be deleted.  If you also want to remove frozen messages from your queue, run the following

grep -R -l ‘*** Frozen’ /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm

You can perform one more that will also clean your exim queue some more

grep -R -l ‘The recipient cannot be verified’ /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm

Second tip – if you are using CPanel, set up your mails to default to :fail: rather than :blackhole:

References:

Enable register_global

Sunday, August 30th, 2009

enable register global

go to the content

we put thisinside:    register_globals = On
then we give it permision
chown doman.domain php.ini

we will see is changed from root to name doman when we do    ls

now done

delete alias email

Sunday, August 30th, 2009

delete alias email

http://forums.cpanel.net/f4/unable-delete-email-forwarders-1973.html

create new domain

Sunday, August 30th, 2009

create new domain

the first thing we want to do is

key in the personal information for the costumer in the main page for the please we choice (personal data icon)

then we slecet the package how many giga, then we create the domain

the

so after that we need to go to the c:/ in the server and we go to this dirctru inetpub/wwwroot/  then we copay this
folder  excelbridge to the d:/domains to the spical domian we have created  to wwwroot

service status in WHM

Sunday, August 30th, 2009

service status

to check if mail server down in Cpanel

change out going IP in linx server cenots

Sunday, August 30th, 2009

how to change outgoing IP
========================

cd /etc/

we checkt the avaible IP we will use it for out going through this command    #host ip

ls
to see exim.conf is there, if there we type this command

vi exim.conf

then we go inside this and we put two # infront interface================================
#interface===============================
this two interface located under remote_smtp

if we want to go to remote_smtp we should use this command   /remote_smtp
so we will go dirct to it

and we put under every interface this one

interface = the new ip for out going
interface = the new ip for out going

we copy this for conformation

=========
remote_smtp:
driver = smtp
#  interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}}
interface = 124.217.242.221

dk_remote_smtp:
driver = smtp
#  interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}}
dk_private_key = “/var/cpanel/domain_keys/private/${dk_domain}”
dk_canon = nofws
dk_selector = default
interface = 124.217.242.221

then after that esc and exit  buy :wq! to save it

and then we restart exim by this comand

service exim restart

thanx

to make sure change or not?
netstat -na |grep 25

cant create SQL databbase 2003 windows

Sunday, August 30th, 2009

helm>>system setting>> servers>>servername>>Dbmysql or aother services>>we add the admin password that we have bring it from RDC to the server and we have it there is was mysql problem, but if other problem we need to ask

cant access Cpanel or Mysql

Sunday, August 30th, 2009

if you cant access Cpanel or Mysql

we shoud to restart   IIS in windows

if you want to add filter in windows 2003 server(filter for black list or for reject title message)

Sunday, August 30th, 2009

if you want to add filter in windows 2003 server(filter for black list or for reject title message)

we need to do the following steps

we go to male enable- then we go to filter, then we rite click on filter- then we select new filter
then we rite the domian name without com then ok then we go to the name that we have been created then duble click on it
then we will see managment page

then we select the first one that content this sentences (where the subject headr line contnet spicifc work)
then duble click on it to enable it then we go down to tick (external word list file) then edit then we add the title
we need to rejected in the txt file that showing to us when we have clicked edit the after add we should save
then we go add action then we select delete message and ok

for black list email we should go to

where the to header line content spicifc word double click on it then enable then we add the emails after that we go
add action then also we slect action for this , the action will be delete message also

that is all
done
we should reply the ticket now

cheers……….

bandwidth limit

Sunday, August 30th, 2009

bandwidth limit

WHM > Account Functions > Limit Bandwidth on an Account > edit as you like.

or you can view which domain is bandwidth

WHM> view bandwidth limt