Archive for the ‘Uncategorized’ Category

Reason: Remote host said: 601 Attempted to send the message to the following ip’s

Tuesday, December 24th, 2013

An error containing Reason: Remote host said: 601 Attempted to send the message to the following ip’s is returned when SmarterMail is unable to connect to the recipients e-mail server and deliver the e-mail you attempted to send.

 
To resolve the issue, please contact the recipient via alternate methods and inform them of the above. 
 
Typically this happens when the recipients mail server is offline, smtp traffic blocked by a firewall or the e-mail server not accepting connections on port 25.

How to disable email upgrade-notification from CPanel?

Wednesday, May 22nd, 2013

Or you may get this error ” the following scripts that were installed via the “Scripts Library” in your cPanel interface: ”

the solution is below

Steps to disable this notification:

Login to your CPanel.
Click on the icon for Site Software.
On the very first line, you will see a message in dard red color that ends with Click here to turn it off.

thank you.

Exim: IPv6 socket creation failed: Address family not supported by protocol

Wednesday, May 22nd, 2013

it means that your network device has IPv6 enabled, but your network itself doesn’t support it.

The simple solution is to tell exim not to use IPv6 by adding the following to the top of your /etc/exim.conf

disable_ipv6=true
then you need to restart exim after that, and the issue confirm will be fix

Thank you.

How to stop syn attack on linux server

Sunday, May 5th, 2013

The SYN (TCP connection request) attack is a common denial of service (DoS) technique.

A SYN flood is a form of denial-of-service attack in which an attacker sends a succession of SYN requests to a target’s system

When a client attempts to start a TCP connection to a server, the client and server exchange a series of messages which normally runs like this:

The client requests a connection by sending a SYN (synchronize) message to the server.
The server acknowledges this request by sending SYN-ACK back to the client.
The client responds with an ACK, and the connection is established.

How to check the SYN attack on the server.

A quick and useful command for checking if a server is under ddos:
netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n

That will list the IPs taking the most amounts of connections to a server. It is important to remember that ddos is becoming more sophisticated and they are using fewer connections with more attacking ips. If this is the case you will still get low number of connections even while you are under a DDOS.

Another very important thing to look at is how many active connections your server is currently processing.

netstat -n | grep :80 |wc -l

netstat -n | grep :80 | grep SYN |wc -l

The first command will show the number of active connections that are open to your server. Many of the attacks typically seen work by starting a connection to the server and then not sending any reply making the server wait for it to time out. The number of active connections from the first command is going to vary widely but if you are much above 500 you are probably having problems. If the second command is over 100 you are having trouble with a syn attack.

Solution:

First go with

echo 1 > /proc/sys/net/ipv4/tcp_syncookies

and then

Try with all these IPtables rule , there may other attacks too.

iptables -A INPUT -p tcp –tcp-flags ALL NONE -j DROP
iptables -A INPUT -p tcp –tcp-flags SYN,FIN SYN,FIN -j DROP
iptables -A INPUT -p tcp –tcp-flags SYN,RST SYN,RST -j DROP
iptables -A INPUT -p tcp –tcp-flags FIN,RST FIN,RST -j DROP
iptables -A INPUT -p tcp –tcp-flags ACK,FIN FIN -j DROP
iptables -A INPUT -p tcp –tcp-flags ACK,PSH PSH -j DROP
iptables -A INPUT -p tcp –tcp-flags ACK,URG URG -j DROP

then,

service iptables save
service iptables restart

it should resolve your issue.

550 Access denied Invalid HELO name

Thursday, September 27th, 2012

If you’re getting this error when sending out email. Please double check your email setting to use the following

For outlook

Click Tools then E-mail Accounts…
Select “View or change existing e-mail accounts” and click Next
Select the email account and click Change
Click on “More settings”
Select “Outgoing Server” tab
Tick “My outgoing server (SMTP) requires authentication”
Select “Use same settings as my incoming email server”
Click Ok
Press Next
Lastly, press Finish

Once these steps are done, try to send the email again. Contact us if the problem still persist.

Load average script

Wednesday, February 22nd, 2012

for ((i=0; i<=2160; i++)); do uptime; sleep 120; done

Create Subdomain in plesk 10

Tuesday, October 18th, 2011

To create subdomain in Plesk please follow the followinig steps:-

1) Log in to Plesk control Panel.

2) Click on “Domains” and then Click on “Control panel” in front of the domain whose files permession you want to change.

3) Click on “Websites and Domains“.

4) Click on “Add new Subdomain” option at the bottom of the page.

5) Enter the subdomain name that you want to enter and also define the document root of that subdomain.

6) Click on “OK” once you have entered the above details.

Can’t execute FLUSH PRIVILEGES: MySql error 1146:Table ‘mysql.servers’ doesn’t exist

Sunday, October 9th, 2011

If you got the below error once you tried to create database user

Add new database user failed: Can’t execute FLUSH PRIVILEGES: MySql error 1146:Table ‘mysql.servers’ doesn’t exist
———————- Debug Info ——————————-
0: plib\DatabaseManagerMySQL.php:83
DatabaseManagerMySQL->addUserToDatabaseImpl(string ‘tendy_test3’, string ‘*********’, string ‘trendy_test2′)
1: plib\DatabaseManager.php:163
DatabaseManager->createUser(object of type dbUser)
2: htdocs\domains\databases\db_usr_edit.php3:116

the solutions is below

got the below solutions for the same

Step 1: SSH to your server
Step 2: Open mysql by typing:

mysql -u YOURUSERNAMEHERE -p

Make sure to put in your own username. When you hit enter, you’ll be asked for your mysql password.

Step 3: Use the mysql database:

USE mysql;

Step 4: Place this code in to create the table:

CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
COMMENT=’MySQL Foreign Servers table’;

I hope that helps someone out there!

References.

http://forum.parallels.com/showthread.php?t=110100

Ruby on Rails Icon in cPanel

Sunday, August 21st, 2011

Main >> Software >> Module Installers) that allows Ruby Gems to be configured.

How to install joomla

Thursday, July 21st, 2011

How to Install Joomla From Your cPanel Using Softaculous

Last Updated on Monday, 30 November 2009 03:15 Written by Arian Jahansouz Monday, 30 November 2009 03:15

This article will give you a step by step guide on how to install Joomla from your cPanel. Sign into your cPanel and follow these steps:

1) Click Softaculous.

1

2) Scroll down to Portals/CMS. Find the Joomla link and click on it.

2

3) Click Install.

3

4) Fill out all of the boxes. For In Directory type the name of a new directory you would like created. By default, the box will be left blank to install the software into your main directory. When you are finished, click Install.

4

5) You will then get a confirmation page of your installation.

5

This concludes how to install Joomla from your cPanel.