Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

How to discard all the emails for non-existing mailboxes (Qmail server)

1. Login onto the Qmail server.

2. Create a catchall mailbox like catchall@<domain>.com

3. Find out the domain directory with the command below-
[root@mail ~]# ~vpopmail/bin/vdominfo <domain>.com

4. Edit the .qmail-default file as below:
[root@mail ~]# vi /home/vpopmail/domains/<domain>.com/.qmail-default
===================================================================================
Replace the line-
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

With this line-
| /home/vpopmail/bin/vdelivermail '' delete
===================================================================================

5. Restart the qmail services
[root@mail ~]# /etc/init.d/qmaild restart

Manoj | Wednesday 12 November 2014 - 7:34 pm | | Default | One comment

How to setup a catch-all account on the Qmail server

1. Login onto the Qmail server

2. Create a catchall mailbox like catchall@<domain>.com

3. Find out the domain directory with the command below-
[root@mail ~]# ~vpopmail/bin/vdominfo <domain>.com

4. Edit the .qmail-default file as below:

[root@mail ~]# vi /home/vpopmail/domains/<domain>.com/.qmail-default
===================================================================================
Replace the line-
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

With this line-
| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/<domain>.com/catchall
===================================================================================

5. Restart the qmail services
[root@mail ~]# /etc/init.d/qmaild restart

Manoj | Thursday 06 November 2014 - 1:30 pm | | Default | 65 comments
Used tags: , , , ,

The use of the undefined constant REQUEST_URI

$_SERVER[REQUEST_URI] is syntactically incorrect and AFAIK will not run on a default installation of PHP 5. The array index is a string so it needs to be passed strings. I know PHP 4 converted undefined constants to strings inside the square brackets but it's still not good practice.

EDIT: Well unless you define a constant called REQUEST_URI in your example script,  $_SERVER['REQUEST_URI'] is the standard method and what you should be using.

$_SERVER["REQUEST_URI"] also works and while not wrong is slightly more work for the PHP interpreter so unless you need to parse it for variables it should not be used.

Shubham | Tuesday 23 September 2014 - 5:58 pm | | Default | No comments

Setting up the check_mk agent on Linux

 1. Verify if the server already has the check_mk agent installed, using the command below:
[root@cpannneltest ~]# rpm -qa | grep check_mk

If this returns any matching package name, this means that the check_mk agent is already installed.

2. If no result is returned by the command above, check_mk is missing, and can be set up as per the steps below:
---------------------------------
[root@cpannneltest ~]# cd /usr/local/src
[root@cpannneltest ~]# wget http://mathias-kettner.de/download/check_mk-agent-1.1.10p3-1.noarch.rpm OR

[root@cpannneltest ~]# wget http://mathias-kettner.com/download/check_mk-agent-1.2.0p3-1.noarch.rpm

[root@cpannneltest ~]# yum --nogpgcheck -y localinstall check_mk-agent-1.1.10p2-1.noarch.rpm xinetd

[root@cpannneltest ~]# sed -i '42 i         only_from      = 17x.x.x.x' "/etc/xinetd.d/check_mk"

[root@cpannneltest ~]# /etc/init.d/xinetd reload
---------------------------------

3. Allow the inbound TCP port 6556 in the firewall.

Now this node can be added in the check_mk admin panel on the Nagios server.

Manoj | Saturday 13 September 2014 - 06:59 am | | Default | No comments
Used tags: , , , , ,

Apache error-(28)No space left on device: Couldn't create accept lock

Scenario- Apache has stopped and is getting the error message below while starting-

[Sat Aug 16 02:22:49 2014] [emerg] (28)No space left on device: Couldn't create accept lock

Possible cause- Some semaphores might be stuck

Solution- Check semaphores on the server by using the command below
[root@web ~]# ipcs -s

Clear semaphores out with the command below
[root@web ~]# for i in `ipcs -s | awk '/httpd/ {print $2}'`; do (ipcrm -s $i); done

Start Apache now
[root@web ~]# /etc/init.d/httpd start

Manoj | Saturday 16 August 2014 - 02:34 am | | Default | No comments

Setting Up a Django Server Using Nginx and Gunicorn

 

 

We'll setup and configure the Django server on Ubuntu. We are going to configure it with Nginx and Gunicorn for good compatibility and performance.

Read More

Shivam | Monday 14 July 2014 - 04:08 am | | Default | Four comments