How to test SMTP operations using Telnet

1. Telnet into Exchange server hosting IMS service using TCP port 25.
Command is telnet <servername> 25

2. Turn on local echo on your telnet client so that you can see what you are typing.
On Win 9x and NT 3.5/4.0 Telnet client this done by selecting the “preferences” from the “terminal” pull down menu, and checking the local echo radio button.  For Windows 2000 telnet client, issue command “set local_echo”, from the telnet command prompt.

3. Issue the following smtp command sequence

helo <your domain name><enter>                  
response should be as follows
250 OK

mail from: <your Email Address><enter>
response should be as follows
250 OK – mail from <your Email address>

rcpt to: <recipient address><enter>
response should be as follows
250 OK – Recipient <recipient address>

data<enter>
response should be as follows
354 Send data.  End with CRLF.CRLF

To: <recipient’s display name><enter>
From: <your display name><enter>
Subject: <Subject field of Email message><enter>
<Enter you body text><enter><enter> . <enter>

response should be as follows
250 OK

quit<enter>

 

Thanks for reading.

See you later in another article.

Hasan

Enable/disable firewall from command line

Hello everyone, I’m going to share a few efficient commands for windows or server operating systems in this article. How to disable windows firewall disable or enable from the command line interface.

Windows firewall can be enabled/disabled from command line using netsh command.

Let’s see the syntax of netsh advfirewall to configure firewall on these Windows versions.  Firewall settings are different for each of the 3 networks (Domain, private, public). So based on which network firewall you want to enable/disable, the command would vary.

Windows 10 / Windows 8/ Windows 7 / Server 2008,2012,2016 /Vista:

You can turn on firewall for the current network profile(does not matter if it’s domain/private/public network) using the below command.

netsh advfirewall set currentprofile state on

Turn off firewall for the current profile:

netsh advfirewall set  currentprofile state off

These commands should be run from an elevated administrator command prompt. Otherwise you would get the below error.

C:\>netsh advfirewall set  currentprofile state on
The requested operation requires elevation (Run as administrator).

To enable/disable firewall for a specific network profile, you can use the below commands.

Domain network

Turn on Domain network firewall:

netsh advfirewall set domainprofile state on

Turn off domain network firewall:

netsh advfirewall set domainprofile state off

Private network

Turn on private network firewall:

netsh advfirewall set privateprofile state on

Turn off private network firewall:

netsh advfirewall set privateprofile state off

Public network

Turn on public network firewall:

netsh advfirewall set publicprofile state on

Turn off public network firewall:

netsh advfirewall set publicprofile state off

Configure for all networks

Turn on firewall for all networks

netsh advfirewall set allprofiles state on

Turn off firewall for all networks

netsh advfirewall set  allprofiles state off

Older Windows versions – XP / Server 2003:

Below is the command to turn on firewall.

netsh firewall set opmode mode=ENABLE

The command to turn off firewall is:

netsh firewall set opmode mode=DISABLE

Administrator privileges are required to configure firewall so above command can be run only from admin accounts.

netsh firewall is deprecated in new versions.

In Windows 10/ 8 / 7 / Vista/ Server 2008, ‘netsh firewall‘ command prints message like below.

c:\>netsh firewall set opmode mode=ENABLE
IMPORTANT: "netsh firewall" is deprecated;
use "netsh advfirewall firewall" instead. Though the command still works,
 it's preferable to use the new set of commands provided with netsh command.

Thanks for reading.

See you later in another article.

Hasan

How to enable .NET Framework 3.5 by using with Windows PowerShell

Hi guys,

You can installation Net-Framework 3.5 with Powershell, this is a very simple process. Please follow step by step from below.

Start Windows PowerShell in the Administrator Command Prompt by typing:

powershell

To install .NET Framework 3.5 from installation media located on your computer, then use the following command:

Install-WindowsFeature Net-Framework-Core -source d:\sources\sxs

To verify installation, run the following command:

Get-WindowsFeature Net-Framework-Core

dotnet35withpowershellinstallation
The Install State column should show Installed for the .NET Framework 3.5 (includes .NET 2.0 and 3.0) feature.

Thank you so much your reading

 

How to enable .NET Framework 3.5 by using with Windows PowerShell.

Have a nice day.