HanG321 Blog
Be Shine, Be Smile, Be Wild
  • Home
  • Blog
    • 好文閱讀 readings
    • 生活記事 diary
    • 時事評論 commentary
    • 科技資訊 technology
    • 電腦編程 programming
    • 金融財經 finance
    • 音樂電影 music/movie
  • About

Telnet – SMTP Commands

January 2, 2007|telent, 網絡資訊|科技資訊
Home » Blog » 科技資訊 » Telnet – SMTP Commands

In order to access your mailbox you will need 3 things:

  • An active internet connection (an embarrasing stage to miss sometimes!)
  • The address of a mail server capable of relaying for you – usually provided by your dialup provider (e.g. mail.domain.ext)
  • A valid email address (e.g. [email protected])

The first thing to do is to open a connection from your computer to your mail server.
telnet mail.domain.ext 25
You should receive a reply like:

Shell
1
2
3
4
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset??

You will then need to delcare where you are sending the email from:

HELO local.domain.name – dont worry too much about your local domain name although you really should use your exact fully qualified domain name as seen by the outside world the mail server has no choice but to take your word for it as of RFC822-RFC1123.
This should give you:
250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you?

Now give your email address:

MAIL FROM: mail@domain.ext

Should yeild:  250 2.1.0 mail@domain.ext... Sender ok

If it doesn’t please see? possible problems.Now give the recipients address:
RCPT TO: [email protected]
Should yeild: 
250 2.1.0 mail@otherdomain.ext... Recipient ok If it doesn’t please see possible problems.To start composing the message issue the command

DATA?

If you want a subject for your email type Subject:-type subject here- then press enter twice (these are needed to conform to RFC 882)

You may now proceed to type the body of your message (e.g. hello [email protected] from [email protected])

To tell the mail server that you have completed the message enter a single “.” on a line on it’s own.
The mail server should reply with:

 250 2.0.0 ???????? Message accepted for delivery?

You can close the connection by issuing the QUIT command.
The mailserver should reply with something like:

221 2.0.0 mail.domain.ext closing connection Connection closed by foreign host. 

January 2, 2007 user

Related Posts

  • Add route after VPN
    Add route after VPNAugust 2, 2014
  • How to use Nslookup to verify MX record configuration
    How to use Nslookup to verify MX record configurationJanuary 8, 2007

Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)June 8, 2015
  • assembly
    assemblyFebruary 11, 2006
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題….October 28, 2004
← Happy New Year
2007年的第一個工作天 →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.




最新文章 Recent Posts

  • Serverless Cloud Run Development: Challenge Lab
  • ionic 4: capacitor & pwa
  • Open file limit of tomcat and mysql in Linux server
  • avoid subquery in mysql update statement
  • hacktoberfest

最新留言 Recent Comments

  • admin on LikeCoin
  • Edmond on LikeCoin
  • John Smith on Install macOS High Sierra on VMware
  • admin on Install macOS High Sierra on VMware
  • nana on Install macOS High Sierra on VMware




熱門文章 Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8) June 8, 2015
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題…. October 28, 2004
  • assembly
    assembly February 11, 2006
  • 新工作
    新工作 January 6, 2009
  • 嫁人要嫁工程師
    嫁人要嫁工程師 April 27, 2006

標籤雲 Tag Cloud

CentOS Character chroot Cluster crash cryptography DD-WRT debug Domino DSM Dual Core DWA email ESXi GCP git google HylaFax IE Java Javascript JRE LikeCoin Linux log LotusScript mint MX MySQL nginx PKI PowerShell Qwiklabs srt telent VMware vpn vSphere WinXP wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

January 2007
M T W T F S S
  « Dec   Feb »  
1234567
891011121314
15161718192021
22232425262728
293031  

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

Copyright © 2004-2021 hang321.net. All Rights Reserved