Menu
×
  • Main
  • Home
  • Network Monitoring Software
  • Application Monitoring Software
  • Bandwidth Monitoring Software
  • Syslog Servers
  • TFTP Servers
  • Event Log Analysis Software
  • Help Desk Software
  • IPAM Software
  • Netflow Analyzers and Collectors
  • Network Configuration Management Software
  • VN Manager & Monitoring Software
  • Wake On Lan Tools
  • Info & Contact
  • Contact
  • Terms of Use
  • Privacy Policy
  • Disclaimer
  • Legal
  • © 2016 NetAdminTools.com
    All Rights Reserved

Network Admin Tools

  • Home
  • Monitoring
  • Backup/Recovery
  • GNU/Linux
  • Administration
  • Perl
  • Ruby
  • Database

Our readers provide the funding for our platform, and we may receive a commission when you make a purchase using the links on our site.

Test SMTP (email) via Telnet

Last Updated: May 31st, 2018 - Paul Anderson

By Paul Anderson / May 31, 2018 — Email

One good trick to use when testing your email server is to use telnet. To send email, you can just telnet into the destination email server directly:

u-1@srv-1 u-1 $ telnet yourmailserver.com 25
Trying 21.40.23.46...
Connected to yourmailserver.com.
Escape character is '^]'.
220 mx.yourmailserver.com ESMTP Sendmail 8.12.9/8.12.9; Thu, 12 Jun 2003 10:06:19 -0700
helo frommail.com
250 main.signalq.com Hello [12.24.14.32], pleased to meet you
mail from: butter22333@frommail.com
250 2.1.0 butter22333@frommail.com... Sender ok
rcpt to: webmaster@yourmailserver.com
250 2.1.5 webmaster@yourmailserver.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Subject: test message
this is a test
.
250 2.0.0 h5CH6GVI015806 Message accepted for delivery
quit
221 2.0.0 mx.yourmailserver.com closing connection
Connection closed by foreign host.
u-1@srv-1 u-1 $

The headers show up:

Return-Path: er22333@frommail.com>
Received: from frommail.com ([12.24.14.32])
by mx.yourmailserver.com (8.12.9/8.12.9) with SMTP id h5CH6GVI015806
for webmaster@yourmailserver.com; Thu, 12 Jun 2003 10:07:31 -0700
Date: Thu, 12 Jun 2003 10:06:19 -0700
From: butter22333@mail.com
Message-Id: <200306121707.h5CH6GVI015806@mx.yourmailserver.com>
Subject: test message 

Notice that the SMTP id, the Received: from IP, and the Message-Id have info added by the mail server.

The rest cannot be relied on as far as determining the validity of the email, because this was entered by us, and is not verified.

This varies.

Some mail servers check for valid domain names, and some can be configured to do a reverse lookup on the IP source.

To test your mail server for relaying, enter an email address on the rcpt to: line for a different domain that the server should not relay for.

Paul Anderson
  • Twitter

Paul is an Avid Tech Geek who Loves writing, Cycling and All Things Linux! He comes from a Background of Windows Administration along with Ubuntu/Centos Server administration. Paul holds industry wide certifications include CompTIA & Microsoft Accredited certifications.

Search

Must Read Resources

  • WHITE PAPER
    Network Management Software Buyers Guide
  • WHITE PAPER
    GNS3 Network Emulator Training
  • WHITE PAPER
    Netflow Best Practices
  • WHITE PAPER
    Learn how to Analyze Packet with Deep Analysis
  • WHITE PAPER
    How to Find your Highest Bandwidth Users
Network Admin Tools
Network Admin Tools

Categories

  • Active Directory
  • Administration
  • Backup/Recovery
  • BSD
  • Bugs and Fixes
  • Certification
  • Comparisons
  • Database
  • Desktop
  • DIY
  • Email
  • ERP
  • File/Print
  • GIAGD
  • GNU/Linux
  • GNU/Linux Dictionary
  • Hardware
  • Information Grab Bag
  • Interoperability
  • Monitoring
  • Name Resolution and DNS
  • Network Management Software
  • Network Services
  • Networking
  • Perl
  • REALbasic
  • Remote Control
  • Ruby
  • Security
  • Software
  • Solaris
  • Syslog Servers
  • TFTP Server
  • Uncategorized
  • Web
Network Admin Tools
Network Admin Tools

Information

  • Contact
  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Legal

About

  • About Us
  • Contribute
  • Staff/Authors

© 2026 Network Admin Tools · Powered by Leanpress