When starting to troubleshoot smtp issues you can do this easily via telnet, below a hosrt description on how to perform the test:

First we will make connection to the mailserver on port 25.

telnet mail.company.com 25

You will receive the following answer when, for example, you connect to an Exchange server

220 mail.company.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Sun, 5 Apr 2009 21:36:57 +0200

You will need to reply with a helo followed by the domain you are sending from

helo test.nl

Next you will need to specify the sender of the mail

mail from: test@test.nl

When the sender has been accepted the mailserver will respond with a 250 – OK

250 2.1.0 OK – Mail FROM test@test.nl

Next thing you need to specify is the recipient of the mail

rcpt to: user@company.com

When the recipient address has been excepted the mailserver again will respond with a 250 OK

250 2.1.5 OK recipient user@company.com

Now we have specified both the sender and recipient we can specify the mail, this will be done via the command data

data

When you have send the aboe command to the mailserver it will respond with the following command

354 Send data. End with CRLF.CRLF

The mailserver will tell you that you will need to end the mail with a .

First we specify the subject of the mail, when you don’t do this the subject will be empty.

subject: smtp test via telnet

After the subject command has been specified you will need to press enter 2 times, you won’t receive feedback of this. The 2 times enter is needed according to  RFC-822 and RFC-2822.

Now we have specified the subject we can specify the text we would like to be in the mail

This mail is send via telnet
.

As mentioned earlier we end the mail with a ., the . needs to be placed on a new line. When the mail has been accepted by the mailserver for delivery it will respond with the following command

250 2.6.0 <COMPANY5Kns1ZEqUz00000001@company.com> Queued mail for delivery

To disconnect from the mailserver you will need to use the command quit

Quit

For further information of the RFC’s have a look at the sites below.

RFC-822
RFC-2822

Gepost in Blog ~ Geen Reactie

Tutorials

16 March, 2008

This page contains an overview of all the tutorials:

PHP

Install PHP and Mysql in Vista open

Exchange tutorials

Create a user via Powershell open

Configure Exchange UM open

Activate UM options for a user open

Configure the Exchange UMTestphone open

Create users via CSV open

Create transport rules open

Install Anti-spam Agents on the Hub Transport server  open

Install Exchange 2007 in an Exchange 2003 environment open

Create a resource Mailbox open

Exchange 2007 setup parameters open

Add and configure UM language-packs open

Message Classifications open

Outlook Web Access open

Implement an Edge Transport server open

Message Recording Management open

Dynamic Distribution Groups open

Changing Out Of Office settings on an Exchange 2007 server open

Prepare Windows 2008 for Exchange 2007 open

Organizational forms in Exchange 2007  open

Shared address space open

Moving logs of a CCR enabled storage group open

Install a certificate open

Autodiscover in a multiforest environment open

Make OCS client available in OWA open

Exchange 2010 SP1 beta: install and configure UM role open

Windows 2008

Install DNS and AD open

Creating shares open

IMSS

Prevend spoofing with IMSS open

Block unknown internal domains with Trend Micro IMSS open

Synology

Install the SSH/telnet patch on the Synology open

Gepost in ~ Geen Reactie

Synology DS207+

Since a few days I am also an owner of the Synology DS-207+ the experience till now is really great. On the Synology there are a lot of possibilities such as activating SSH or Telnet. This is the first step to more, in this tutorial I will let you show how you can install the patch.

open

Gepost in Tutorials ~ Geen Reactie

Pagerank search phrase