How to configure the SMTP relay in IIS7 – Windows 2008

Installing the STMP Service

  • From your Server Manager right click on features and click on Add Features menu
  • Select SMTP Server and click next
  • Click on Add required role services (This will also install IIS6.0 Manager which is mandatory for SMTP service)
  • Click Next
  • Check whether IIS 6 metabase compatibility and IIS6 management console is checked

  • Click Next and Click Install

Configuring SMTP Service

  • From Administrative Tools run IIS6 Manager
  • Click on SMTP Server Properties

  • In the General tab select the IP address of your SMTP Server from the drop down list

  • Go to Access Tab and click on Relay button
  • Select Only the list below option and add 127.0.0.1 as IP Address and click OK

  • Right click on domain and click on new Domain

  • Select domain type as Remote and click next

  • Specify a Name and click Finish
  • Go to the properties of that newly created domain
  • Enter your mail server FQDN or IP (in between [ ]) in the Forward all mail to smart host field
  • Click on Outbound Security –> Select Anonymous access and check TLS encryption
  • Click Ok
  • Restart SMTP Service

Test SMTP

  • Create a text file name – email.txt
  • Paste the below line and copy it in C:\inetpub\mailroot\pickup (Or your SMTP pickup) folder

From: masudur.sayem@hotmail.com
To: masudur.sayem@hotmail.com
Subject: Email test- Blog

This is the test body of the email

  • Check whether you got that mail

How to Change the Default Mail Queue location in IIS?

  • Open IIS Manager and Stop Default Web Site
  • Copy C:\ inetpub folder to D:\ inetpub
  • Go to IIS again –> Select Default Web Site –> From the right side of the window click on Basic settings and change the physical path and click OK

  • Go to Services and stop IIS Admin Service
  • Go to system32/inetsrv folder
  • Make a backup of metabase.xml and open that file
  • Replace the path where you want by searching string- “C:\inetpub”

  • Start IIS Admin Service and SMTP service
  • Start your Default web site

BINGO!! 🙂

SharePoint Backup Failed: Object failed in event OnBackup. SqlException: Cannot open backup device. BACKUP DATABASE is terminating abnormally

While performing SharePoint Backup if you see such error, there may be several reasons of that error:

  1. You have a SharePoint Server firm and you are taking backup in a local drive, without specifying the network share
  2. The SQL Server Service account and SharePoint Service account don’t have the Share and Security permission on that shared folder, which you have mentioned to take backup

Solution

  1. Please check whether your MSSQLSERVER service account is a local or domain account. If you are using a local account, you must change it as domain account.
  2. Please check whether your MSSQLSERVER service account and SharePoint service account have the read/write permission on that Shared folder
  3. However, please do not give folder permission to Everyone – this is a very bad practice

Hope it will resolve your problem.

How to change the default home page in SharePoint 2007 or 2010

The easiest way to change default home is by using SharePoint Designer
1. At first create a page, which you want to make as home page
2. Open SharePoint Designer and connect to your site
3. Copy your newly created page and paste it in the root directory of your site. **SharePoint can only make a page as home page if it is in the root directory
4. Write click on the your target page and click on Set as Home Page
5. Click yes if it prompts for confirmation
6. The system will rename you existing default page to default-old.aspx to make the new page as default page

SharePoint prerequisite for Windows Server 2008

Before installing SharePoint in Windows Server 2008 below Roles and Features must be installed:
1. Go to Server Manager and Right Click on Roles –> Add Roles
2. From Web Server –> Common HTTP Features select

  • Static Content
  • Default Document
  • Directory Browsing
  • HTTP Errors

3. From Application Development select

  • ASP.NET
  • .NET Extensibility
  • ISAPI Extensions
  • ISAPI Filters

4. From Health and Diagnostics select

  • HTTP Logging
  • Logging Tools
  • Request Monitor
  • Tracing

5. From Security Select

  • Basic Authentication
  • Windows Authentication
  • Digest Authentication
  • Request Filtering

6. From Performance select

  • Static Content Compression
  • Dynamic Content Compression

7. From Management Tools

  • IIS Management Console

8. From IIS 6 Management Compatibility select All

From Server Manager right click on Features and Click Add Features
1. From .NET Framework 3.0 Features select

  • .NET Framework 3.0

2. From Remote Server Administration Tools –> Role Administration Tools select

  • Web Server (IIS)) Tools

BIG DATA Opportunity for Bangladeshi IT Service Providers

We missed BPO wave. We are still missing the cloud wave. Can we ride the Big Data wave, the next big opportunity in IT industry?
As per the research Big Data will reach $46.34 Billion by 2018.

The big player like India is already in the market, they are using their existing outsourcing channels to take a stake of this industry from their allies. InfoSys has created a BigData platform called BigDataEdge, similarly Wipro has developed a Big Data framework Called– ‘3B framework’. HCL, Happiest Minds, TATA all are grooming their skill to ride this wave.

What about Bangladesh?

We still don’t have a single professional training center in Bangladesh for IT training, who can deliver courses in a professional manner. Not a single University in the country is offering any Big Data courses. While this opportunity is massive, the shortage of skill people is a very big challenge.

On the other hand we have a strong young educated computer professions whom we can use to learn this topic. And the TELCOs- who are really dealing with huge amount of data should start sending their IT personnel for a training on this topic.

Huge opportunity of Skill Labor export

According to McKinsey, the U.S. alone faces a shortage of 140,000 to 190,000 analysts and 1.5 million managers who can analyze Big Data. To catch this opportunity, countries local universities should start offering Big Data courses, they can also join with other universities in the world who are offering those courses, to get an expert help.

Local IT training provider – like AMS, New Horizon should offer Big Data training to attract IT professionals who are already experienced and can jump into this new profession after getting a professional training. Training providers should look for a join venture with EMC, IBM, Cloudera, Hortonworks to make their Big Data courses available in Bangladesh.

Huge opportunity for IT Service Industry

The local IT Service companies like Brac IT Service Ltd., Computer Services Ltd. and many more are still struggling in IT Service industry. Those companies have a huge financial backup from their big brothers like Brac NGO, or Computer Services PC sales division but wonder to see still they are struggling to have a sustainable business portfolio in IT Service business.

I would request you all to explore outside world, have some joint business deal with market leaders in Big Data industry, like Teradata, IBM, EMC, Cloudera and Hortonworks. We don’t have the time or justification to reinvent the wheel, it is time to work with the big brothers shoulder by shoulder to learn and get a stake from them. Wipro the IT giant also did the same in 1988 by creating a joint venture with United States’ General Electric.

Hoping for a shiny Bangladesh!!

My experience in Software Development without being a Developer – The Beginners Guide


I am not a programmer at all. I don’t even have the depth knowledge on Object oriented programming which is mandatory to jell with programmer’s society 😉 , who believes you are an as..ho.. if you have less or no knowledge on OOP (and off course to develop software).

With due respect to all those guys, just to let you know, in my last 10 years in IT industry I have developed more than 50 business applications/tools including CRM, HRM, Systems Monitoring tools, Business Workflows and many more, though it was not my primary role at all and having a few knowledge in OOP.

This article is for those who are still struggling in Software Development profession and who are really want to tap into this profession in future.

Understanding Customer’s Requirement – Apple is Apple

I believe this is one of the key criteria to be successful in Software Development.

  • Listen to the customer – YES I mean it.
  • Don’t plan how you will make it while listening (this is a common mistake what we all do), otherwise you may miss some important points
  • Ask question to dig the core problem and demand
  • Sit with the customer again after making the primary plan to describe what you have understood so far. Don’t just jump into the solution
  • Have a continuous feedback session in the development phase with the customer to make Apple as Apple not as Jackfruit!!
  • Don’t over promise
  • Be committed
  • Let the customer know in advance if any issue arise
  • Don’t hide problems to the customer

The Power of INSERT, UPDATE and DELETE statement

I don’t know whether you will agree with me or not, these are the only core commands you should know to develop a database driven application. Every single application in the world which are using Databases are using three basic commands to view you a dynamic form. No matter what language or what platform they are using. So, learn how to do that.
For my case I use C# .net and MSSQL. Here are some tips how to deal with it:

How to open a Database Connection

using System.Data.SqlClient;
String strConn = “Data Source=SERVERNAME;Initial Catalog=DBNAME;User ID=USERID;password=PASSWORD;”;
SqlConnection objCon; objCon = new SqlConnection();
string strConn = “Data Source=SERVERNAME;Initial Catalog=DBNAME;User ID=USERID;password=PASSWORD;”;
objCon = new SqlConnection(strConn);
objCon.Open();

How to read data from a table

String strSQL = ” Select * from MYTable”;
SqlCommand objCMD; SqlDataReader objRST;
objCMD = new SqlCommand(strSQL, objCon);
objRST = objCMD.ExecuteReader();
if (objRST.Read())
{
MyTextBox.Text = objRST[“MYColumnName”].ToString();
}

How to insert data to a table

SqlCommand objCMD;
String strSQL = “insert into FileUpload(FileName,CD) values(‘ABC.pdf’,getdate())”;
objCMD = new SqlCommand(strSQL, objCon);
objCMD.ExecuteNonQuery();
objCMD.Dispose();

How to delete data from a table

SqlCommand objCMD;
strSQL = “Delete from FileUpload where FileID=’1′”;
objCMD = new SqlCommand(strSQL, objCon);
objCMD.ExecuteNonQuery();
objCMD.Dispose();

How to update data in a table

SqlCommand objCMD;
strSQL = “Update MYTable Set Column1=’1’ where FileID=’1′”;
objCMD = new SqlCommand(strSQL, objCon);
objCMD.ExecuteNonQuery();
objCMD.Dispose();

The Power of HTML and JavaScript

If you are developing web based application you should have some idea to write HTML code and also JavaScript. However nowadays most of the IDE generate HTML code from your drag and drop action so you can have some idea how HTML code should be written. Moreover, you need some idea on JavaScript to Track user end event like – Click, Key Press etc.

Have some idea on database programming

This is very important to learn – how can you do the database design based on user requirement. Because, at the end of the day it is actually playing with data which stores in Database.

Learn how to talk with Google

This is really a key skill you should have to get any problem’s resolution very quickly. You must know how to talk with Google search engine. For my case, Google is the one and only tool – I don’t even think about a moment without it now!!

Love the problem and love what you are doing

If you don’t treat a PROBLEM as an OPPORTUNITY and if you don’t passionate about coding, I believe you should leave your programming job as definitely it doesn’t work without enthusiasm.

Learn Business Language

Your customer don’t want to know whether you need to use .net or PHP, they just don’t even care about what internally you are doing to fulfill their requirement. They only want to see the ultimate outcome of the product that you deliver to them. So talk in their language and visualize finish product from their point of view.

I know most of the professional software developer will oppose few of my suggestions that I have stated here. As I have mentioned earlier I am not a programmer but in your IT profession, programming is a key skill which can make you a wizard in your organization. Hence I’ll encourage you all to gather some programming knowledge, I am sure it will help you in your day to day work.

Happy coding!!

How to Create a new web application with existing Content Database in SharePoint

Assuming that you have a situation where you have two Servers in a SharePoint Firm. One is for Database and another one is for Web Front-end Server. And your web front end server crashed or you want to create a new application using an existing content DB.
Before using the existing Content Database it must be ensured that the SharePoint Firm Version in your SharePoint Central admin and in the Content DB is same, otherwise SharePoint will not allow you to use the existing content DB.

How to Check Firm and DB Version

1. Go to SharePoint Central Admin –> Operation –> Servers in Firm link to check Firm Version

2. From you SharePoint DB Server open query analyzer and check the version name using following query
Use [YOUR CONTENT DB NAME]
Select * from Versions

What to do if Firm Version and DB Version is not same

Though Microsoft does not recommend this solution but it works for me
1. From your SQL Server, open the table called – Versions of your content DB
2. Insert a new row as same as the existing row and Change the Version Number as same as your SharePoint Server Firm and Change the value of ID Column with a max id+1

How to Add Existing Content DB

1. Go to SharePoint Central Admin
2. Go to Application Tab –> Create or Extend web application –> Create a new web application
3. Create the Web application with your required settings
4. In the Database name and authentication settings enter the Database Server name and you existing content DB name

6. The wizard will create this web application without creating any new content db
7. After completing this wizard DO NOT CREATE ANY SITE as your web application will pool site information from you existing content DB

How to add content DB in existing Web Application

1. Go to Central Administration –> Application Management Tab
2. Click on Content Databases link

3. Select the Web Application to which you want to add the content DB
4. THE GROUND RULE – You can not add same content DB in multiple web application
5. Click on Add a Content DB

8. Enter the Database Server Name and Database name of your existing content DB and Change the Site level warning to 9001

What could be the 2014 election manifesto for ICT development in Bangladesh

When Bangladesh goes to the polls on 2014, voters will choose who they believe will deliver a more secure economic future.
Technology will be a driver of Bangladesh economy and it will definitely shape our future.

Few Facts of ICT market in Bangladesh:

  • Over 15000 strong freelance community
  • USD 70 million market size
  • Ranked number 3 in oDesk (Just behind Philippines and India)
  • 34% of population are in age group of 15-34 years
  • 14,500 IT graduate each year
  • 800+ IT Companies
  • 50% cheaper labor cost than that of other Asia-Pacific countries
  • 80% cheaper labor cost than that of European countries
  • 20% cheaper Commercial space than that of Mumbai, Bangalore and Manila

And to make this growth sustainable we need a proper long term plan which our major political parties should think about – how they can serve the country if they are elected for the next term.

A Digital Economy Framework

Government should integrate all the public services using a simplified and uniform portal which will cover entire service portfolio which they suppose to provide their citizen. And government should ensure stable and reasonable internet connection with a priority of rural areas to stimulate economy.

It is now a business demand to have a national fully functional data-center to secure country information. On the other hand, since information security and privacy is a big concern nowadays, there should have a fully functional Firewall like China introduced (Golden Shield Project – Great firewall of China)

Additional Policy for MNCs Operating in Bangladesh

Before this economic downturn, it was a dream of every single mind to get an opportunity in MNCs. Now the situation has changed, now MNCs in Bangladesh are supporting 50% less in job creation than they supported 5 years back.
This is a contradictory situation as when every company is looking for cheaper labor and they are moving back jobs from such cheap skilled labor market like Bangladesh.

When outsourcing comes as a blessing, it is a nightmare for the employees who are working in MNCs in Bangladesh. Most of the companies have closed their supporting department like IT, HR and Finance which are now outsourced to our neighbor countries.

–>Making millions of money from my country and not creating any or few jobs or not reinvesting a portion here – This is unjustifiable.

–>Doing a million dollar business deal in a 5Start hotel lobby is impressive, but not involving countries workforce on that task and taking out all those money from my country is not impressive at all.

–>The big stake of IT Service related jobs comes from TELCOs and we are allowing them to outsource those jobs to neighbor countries. I bet, all those jobs will be diminish from this country to Malaysia, Singapore or India very soon if we don’t act now. We definitely have skilled and cheaper workforce and that cannot be the reason for such situation. The only reason I believe is not having guts to oppose them.

Request to the policy makers

  • A policy for MNCs to reinvest a portion what they are making from this country
  • For any registered MNCs there should have a minimum workforce and corporate department setup
  • Workforce ratio alignment with the business volume and it will be enforced by countries law not by the spectators!! from outside the country who only believe in Excel sheets
  • There should have a permanent minimum infrastructure setup for all MNCs
  • A One Stop service for MNCs business setup and continuous business support to eliminate red tape

ICT skill and education

The demand of skilled ICT professional will continue. It is vital for the Government and industry to collaborate to ensure there is sufficient skill talent available to support the continuous business growth. ICT education should be mandatory in primary, secondary and higher secondary education level.

Stimulate and support ICT SMEs

Small and medium size enterprises are the key players of Bangladesh’s ICT economy. They require appropriate Government support. Propose support could be:

  • Declare Bangladesh as a tax heaven country for the next 10 years for ICT Software and Service business (Not the hardware business)
  • A one stop service desk for startup ICT companies for investment and legal support
  • Campaign for foreign direct investment (FDI) in ICT

Hopping for a shiny Bangladesh!!

Where is Shutdown button in Windows Server 2012?

I wonder to see why Microsoft hided so many useful features from its new Server OS- Windows 2012.

If you want to shutdown or restart your server you can follow the below steps in GUI interface. However you can also use PowerShell command to restart (shutdown /r) or shutdown (shutdown /s) your server.
1. Move mouse to the bottom right corner and click on Settings icon

2. Click on power icon

3. Now you can see the Restart and Shutdown option