Remote Access using IIS Manager

Posted: 25th November 2013 by kunwardharmesh in IIS6

To enable Remote Access to your site using IIS Manager, please contact support.
Note that each site will need to be enabled separately.

Once enabled, sites can be accessed through the following steps:

1. Download and install the IIS Manager software.

2. Open the IIS Manager from the start menu.

3. From the File menu select Connect to a Site

4. Enter in the ftp server from your Account Information as the Server name, and your domain name (without the www.) as the Site name and click Next

5. Use your FTP login credentials for the User name and Password and click Next

6. You may receive a “This certificate was issued to a different server.” alert message, Click Connect to proceed.

7. Click Finish to complete the setup.

Redirect non-www to www

Posted: 25th November 2013 by kunwardharmesh in IIS6

To redirect requests without the www to www on sites on IIS7, adding the following rules to your web.config.
Make sure below is changed to your domain name.

NOTE: If you already have a web.config with rules configured, add the rule below, otherwise a full web.config example is below it.


<rule name=”Redirect to WWW” stopProcessing=”true”>
   <match url=”.*” />
      <add input=”{HTTP_HOST}” pattern=”^$” />
      <action type=”Redirect” url=”{R:0}” redirectType=”Permanent” />

Full Web.Config with Rule

      <rule name=”Redirect to WWW” stopProcessing=”true”>
      <match url=”.*” />
            <add input=”{HTTP_HOST}” pattern=”^$” />
          <action type=”Redirect” url=”{R:0}” redirectType=”Permanent” />

The following error may occur if a site has not been built to run under IIS7:

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

To correct this error try adding the following to the <system.webServer> section of the web.config

<validation validateIntegratedModeConfiguration=”false” />

404 Error with MVC and WebMatrix Web Sites

Posted: 25th November 2013 by kunwardharmesh in IIS6

The following line needs to be set in the web.config in order for MVC based web sites to work under IIS7

<system.webServer> <modules runAllManagedModulesForAllRequests=”true”/> </system.webServer>


The SSL certificate is installed but the private key is missing. What are the steps to recover the private key of an SSL certificate in a Microsoft Internet Information Services (IIS) environment?


Entrust SSL certificates do not include a private key. The private key resides on the server that generated the Certificate Signing Request (CSR). When installed correctly, the Server Certificate will match up with the private key as displayed below.


If the private key is missing, this could mean:

  • The certificate is not being installed on the same server that generated the CSR.
  • The pending request was deleted from IIS.
  • The certificate was installed through the Certificate Import Wizard rather than through IIS.


To recover the private key, follow the procedures below.

Part 1 – Snap-In Configuration

Use the following steps to add the Certificates snap-in:

  1. Click Start, and then click Run.
  2. Type in mmc and click OK.
  3. From the File menu, choose Add/Remove Snap-in.
  4. In the new window that appears, click Add.
  5. Select Certificates and then click Add.pk4
  1. Choose the Computer account option and click Next.pk5
  1. Select Local Computer and then click Finish.pk6
  1. Click Close, and then click OK. The snap-in for Certificates (Local Computer) appears in the console.pk7

Part 2 – Import the Server Certificate

Use the following steps to import your Server Certificate into the Personal certificate store. (If the Server Certificate has already been imported into the Personal store, you may skip this step.)

From the MMC console opened in the above steps:

  1. Expand the Certificates (Local Computer) tree in the left preview panel.pk8
  1. Right-click Personal and select All Tasks > Import.


  1. The Certificate Import Wizard appears. Click Next.
  2. Browse to the location of your Server Certificate file and click Next.pk10
  1. Select Place all certificates in the following store and click Next.

  1. Click Finish to complete the Certificate Import Wizard.pk15
  1. A dialog box appears indicating the import was successful. Click OK.import5

Part 3 – Recover the Private Key

Use the following steps to recover your private key using the certutil command.

  1. Locate your Server Certificate file (for example, server.cer) and double-click it. The Certificate dialog box appears.pk121
  1. Click the Details tab. Write down the 8-character serial number of the certificate.pk13
  1. Click Start > Run.
  2. Type cmd and click OK. A Command Prompt window opens.
  3. Enter the following command at the prompt:

certutil –repairstore my <serial number>

Where <serial number> is the 8-character serial number obtained in Step 2 (spaces removed).

6.      If Windows is able to recover the private key, you see the following message:

CertUtil:  -repairstore command completed successfully.


7.     If your private key was recovered successfully, your Server Certificate installation is complete. If the private key was not recovered successfully, you will need to generate a new Certificate Signing Request and submit it to Entrust to have your certificate re-issued.

Creating user level filtering in cPanel

Posted: 17th November 2013 by kunwardharmesh in WHM/cPanel

When receiving emails on the server, there may be a need for filtering specific email addresses that are coming into the server. Emails can be Discarded, sent to another email address, or delivered to a program with the User and Account Level Filtering. This tutorial will explain the User / Account Level Filtering within the cPanel.

Filtering emails on the User and Account level

  1. Log into your cPanel.
  2. For User level filtering Navigate to the Mail > User Level Filtering in cPanel.
  3. For Account level filtering Navigate to the Mail > Account Level Filtering in cPanel.
  4. In the Manage filters section, click the Manage filters link in the row of the email account that is having filters set up.
  5. The Edit Filters for will open up. Click the Create a New Filter button to add email filters.
  6. The filter will send any spam emails to the Junk folder. Set the Filter name, Rules, and Actions and click Create. The action, in this case, will be Junk. Below is a description of what each Option, Operator, and Action do

    Email Filter Option Rules

    From This is for matching the from email address.
    Subject This will filter by the subject of the email.
    To This will filter the email by who it was sent to.
    Reply Address Filters by the reply address to who the email will be replied to.
    Body Scans the text of the email for any matches and filters according to the text of the email..
    Any Header Scans specific criteria found in the Headers of the email.
    Any Recipient Looks at all recipients of the email.
    Has not been previously delivered Filters emails if they are still in Queue on the server..
    Is an error message Looks at errors received by auto responders.

    Email Filter Operator Rules

    Equals Matches exactly what is put in the box.
    Matches Regex A Regular Expression can be used here..
    Contains Will match if the email has the string of characters in it.
    Does not Contain Will match if the email does NOT have the string of characters in it.
    Begins with Begins with the characters that were typed.
    Ends with Ends with the Characters that were typed.
    Does not begin with Doesn’t begin with the characters that were typed.
    Does not end with Doesn’t end with the Characters that were typed.
    Does not match Does not equal the characters typed.

    Email Filter Action Rules

    Discard Message Deletes the message with no Failure message.
    Redirect to Email Sends the email to another email address.
    Fail with Message Deletes the email and sends a failure message..
    Stop processing rules Does not run any filter rules.
    Deliver to folder Sends the email to a specified folder.
    Pipe to program Sends the email to a program or script on the server.

    Once the filter is created there should be a “You have successfully created a new filter” message.

  7. When visiting the Edit Filters section again, the new filter will be in the list of filters. Here is where the filter can be edited or removed.
  8. Next, the filter can be tested to see if its doing what is required. At the bottom of the edit filters section, change the To: and From: emails or the subject (depending on how you set up the filter) to test the filter. Click Test Filter.
  9. The test filter will run and display on the Filter Trace page. In the Filter trace results: the message can be seen going to where the filter was set. In this case, The message was Saved to the Trash.

Hope you Enjoy!

Cron job not running due to /etc/lynx.lss

Posted: 17th November 2013 by kunwardharmesh in WHM/cPanel

Lynx file “/etc/lynx.lss” is not available.

If you are getting the above error in cPanel for cron job Lynx file “/etc/lynx.lss” is not available” in cPanel server? You can fix it using below mentioned setting

root@server [~]# vi /var/cpanel/exim.conf.deps

and append it and add below entries


Now Save file and quit and error should disappear

Enjoy 🙂

Email error 550

Posted: 12th November 2013 by kunwardharmesh in Email

A 550 email error is generallyencountered when the recipient’s mailbox is unavailable due to being incorrectly typed or not found.

You should receive a bounce-back message from the server with a variation of email error 550 in the subject, and the body should contain your original message that you attempted to deliver.

Example bounce-back message

Delivery-date: Thu, 25 Oct 2013 16:49:59 -0700
Received: from mailnull by with local (Exim 4.77)
id 1TRVJP-0006jL-Qq
for; Thu, 25 Oct 2013 16:49:59 -0700
Auto-Submitted: auto-replied
From: Mail Delivery System <>
Subject: Mail delivery failed: returning message to sender
Message-Id: <>
Date: Thu, 25 Oct 2013 14:49:59 -0700

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
SMTP error from remote mail server after RCPT TO:<>:
host [110.110.110]: 550 Requested action was not taken because this server doesn’t handle mail for that user
—— This is a copy of the message, including all the headers. ——
Return-path: <>
Received: from ([110.110.110]:63548 helo=Admin)
by with esmtp (Exim 4.77)
(envelope-from <>)
id 1TRVJK-0006g1-VL
for; Thu, 25 Oct 2013 16:49:55 -0700
From: “Sender” <>
To: <>

Common variations of the 550 email error

  • 550 No such person at this address
  • 550 No such recipient here
  • 550 No Such User Here
  • 550 No such user – psmtp
  • 550 No such user (
  • 550 permanent failure for one or more recipients
  • 550 Recipient does not exist here
  • 550 Recipient Rejected: No account by that name here
  • 550 <>: invalid address
  • 550 <> No such user here
  • 550…User unknown
  • 550 Rejected
  • 550 relaying denied
  • 550 Requested action not taken: mailbox unavailable
  • 550 Requested action was not taken because this server doesn’t handle mail for that user
  • 550 sorry, no mailbox here by that name (#5.1.1)
  • 550 sorry, no mailbox here by that name. (#5.7.17)
  • 550 This user’s mailbox is full ( – Try again later
  • 550 Unknown user
  • 550 unrouteable address
  • 550 User [] does not exist
  • 550 User unknown

Resolving a 550 email error bounceback

The 550 series of errors are referred to as hard bounces. This means the problem is permanent and attempting to send the message again in the same fashion won’t work. For a more in-depth explanation on hard bounces and general email bounceback reasons you can read why does email bounce, bounceback, or error?

In our example bounce-back error above the reason the message has failed is because the server for doesn’t handle mail for the user so it’s unable to deliver the message for you.

Setting domain MX records to remote settings in cPanel

Posted: 12th November 2013 by kunwardharmesh in Email

A) How to set MX records to remote settings in cPanel.

  1. Log into your cPanel account.
  2. Find the Mail category and click on the MX Entry icon.

  3. From the next screen, use the drop-down near the top to select the domain name you want to work with if it is not already displayed. Next, look under the Email Routing section and click on the radio button labeled Remote Mail Exchanger.


  4. Click on the Change button to save the settings.

Once you hit “Save”, the domain will be listed in /etc/localdomains or /etc/remotedomains automatically, and the new setting will take effect immediately.

B) Changing the exchanger after account creation via SSH

To prevent cPanel from possibly overwriting any changes, the preferred method of changing a domain’s mail exchanger settings is via WHM’s “Edit MX Entry” feature. However, the settings also can be configured manually by directly editing the two files controlling mail routing: /etc/localdomains and /etc/remotedomains.

Modifying a domain to use a different exchanger is as simple as SSHing into the server and editing the files; simply remove the domain from one file and add it to the other. It is that simple. No need to restart services afterward.

The files will look something like the following:

root@host [~]# cat /etc/localdomains
root@host [~]#

Making sure that domains are listed in the correct file will help keep mail moving on its intended path. Localdomains and remotedomains are an often-overlooked part of email administration but are easy enough to fix.

Hope you Enjoy!

Send mail via Gmail when server IP is blocked

Posted: 12th November 2013 by kunwardharmesh in Email
Sending email from Gmail with your own address

In this example, I’m going to be logging into my Gmail account, and adding the email address as another address I can send from.

  1. Go to
  2. Either create a new Gmail account or log in to an existing one.
  3. Click the in the upper-right and select Settings along the top of any page.
  4. Click on the Accounts and Import tab.
  5. In the Send mail a section, click on Add another email address you own.
  6. In the pop-up window that comes up, enter in the name and email address for the account you’re adding, uncheck Treat as an alias, and click Next Step >>
  7. On the next page leave the option Sent through Gmail (easier to setup) selected, then click Next Step >>
  8. Now you need to verify you have access to the email account we’ve entered, on the next page click on Send Verification.
  9. Check your email account, and either click on the verification link, or copy the confirmation code that Gmail emails you into the text box for it, and click on Verify.
  10. Back on the Accounts and Import tab we can now see our new account added, go ahead and click on Compose.
  11. Now in the From drop-down, select our new account, then enter in the rest of your message and click Send.
  12. Now check the account you send the message to, you should see it was sent from the new account we’ve added, and also mailed by

Hope you Enjoy!