Testing An Email Server Using Telnet

August 23 2007

(All commands are in bold)

SMTP test

C:> telnet mail.somedomain.com 25

Trying A.B.C.D...

Connected to mail.somedomain.com.

Escape character is '^]'.

220 mail.somedomain.com ESMTP Exim 4.04 Wed, 13 Nov 2002 16:27:42 -0700

helo someotherdomain.com

250 mail.somedomain.com Hello someotherdomain.com [E.F.G.H]

mail from:

250 OK

rcpt to:

250 Accepted

data

354 Enter message, ending with "." on a line by itself

Subject:Test Message

This is a test message. .

250 OK id=18C6vd-0005Ey-00

quit

221 mail.somedomain.com closing connection

Connection closed by foreign host

C:>

POP3 test

C:> telnet mail.somedomain.com 110

Trying 10.0.0.12...

Connected to mail.somedomain.com.

Escape character is '^]'.

+OK POP3 mailsomedomain.com v2000.69rh server ready

USER username@domain.name <or> domain\userid

+OK Password required for <account name>.

PASS <password>

+OK <account name> has <#> message(s) (xyz) octets

QUIT

+OK Sayonara

Connection closed by foreign host.