NetworkClue.com
NetworkClue Home PageHome Contact UsContact ConsultingConsult
Bulletin Board
Internet Services covers Secrets to hosting websites, Hosting your own web server, and using DNS Servers.Operating Systems leads you through the decision of Linux vs. Windows, ideal installations and setups to create an efficient and redundant environment for your business, and great features to make management easier.Routing & Firewalls contains articles that will allow you to take control of your router. Learn how to protect your company with access lists and advanced firewall techniques.Hardware answers the common questions about Switches vs. Hubs, recommends SysAdmin Tools, and recommendations for adequate power protection.Utilities will cover fighting spam, using Anti-Virus programs effectively and the must haves for every administrator's software toolbox.


Bulletin Board

Manually Testing SMTPAUTH

By Joshua Erdman
Digital Foundation, inc.

There is not a whole lot different than how you would test SMTP. SMTPAUTH still uses TCP port 25.

The Test

To test SMTPAUTH we go through 8 steps:

  • Generate an Encoded Username & Password
  • Connect
  • Handshake
  • Authenticate
  • Identify sender
  • Identify recipient
  • Provide message body
  • End session

All other steps are optional (message priority, subject line, etc).

Generate Encoded Username & Password

Browse to: http://makcoder.sourceforge.net/demo/base64.php

And copy down the encoded versions of your username and password into a basic text editor.

Connect

To connect just use your cheap telnet program at the run dialog and be sure to specify the SMTP port:

telnet mailserver.com 25

Handshake

The handshake is where you specify your host address.  you can really put anything here but if the mail server you are connecting to has spam filtering set up it will reject data that is invalid or does not resolve.

EHLO mail.otherserver.com

Authenticate

You must Authenticate so provide the command:

AUTH LOGIN

The text given back is encoded.  It is basically asking for your username.  Just paste in your encoded username and press enter.  Again you will get some more encoded text asking for your password, just paste in your encoded password.

Identify Sender

Now when you specify the FROM address, if the receiving mail server is filtering for spam it will expect that the domain listed in your FROM address resolves to the same IP as the domain listed when you provided your mail server name at the handshake.

MAIL FROM:<user@mailserver.com>

Identify Recipient

Most mail servers will accept a message to anyone residing on the mail server.  If you try to start a session on an AOL server for example but send a message to a GMAIL address it will be rejected.  Mail servers that allow this are known as Open Mail Relays and are usually blacklisted.

RCPT TO:<user@mailserver.com>

Provide Message Body

Here you start by typing the keyword data and then press enter.  The Mail Server will instruct you to begin typing the message body and to end by pressing enter, typing a single period and pressing enter again.

DATA
subject:subject goes here
this is my test message
sincerely,
user
.

Notice the period at the end to send the message

End Session

To end the session just type quit.

References:

Manually Testing SMTP

Base 64 Encoder/Decoder

 

Article last reviewed: 10/10/2006

Created by: Digital Foundation, inc.

Copyright © 2002-2005 Digital Foundation, inc. www.networkclue.com

All content of the NetworkClue website is copyrighted. Articles, notes, outlines, and all other materials may not be stored on the Internet or sold or placed by themselves or with other material in any electronic or printed format in whole or part. However materials may be referenced by links to the site.

 

Related Articles:
Manually Testing SMTPManually Testing SMTP
Spam Filtering for SendmailSpam Filtering for Exchange
Spam Filtering for SendmailSpam Filtering for Sendmail

Books:





Search Amazon.com for
Books on SMTP Servers