LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2016, 11:30 PM   #1
david_overman
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Rep: Reputation: Disabled
Why Doesn't the dot send message in telnet mail session?


I am testing a mail server,and,everywhere I read to end the data command with a period to signify the end of the data. However, I
can not seem to get this to work. Sample session follows:


250 ok
rcpt to: <nospam@test.com>
250 ok
data
354 go ahead
From: Test_sender <testmail@test.com>
To: Test_receiver <nospam@test.com>
Subject: Just a stupid SMTP test

Just a test !
.
.
.
quit

^.
^]
telnet> quit
Connection closed.
 
Old 11-05-2016, 05:22 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Distribution: Mint/MATE
Posts: 2,928

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
The single dot being an "end of file" character is historical.
Today terminals have a magic key; most common is Ctrl-d
 
Old 11-06-2016, 02:13 AM   #3
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
99.999999+% of web-searches say it SHOULD work! (except 1 `nc` to gmail)

What 'terminal' are you doing this in? Post your output of: stty -a; uname -a

Maybe it's a 'cr/lf/nl' issue. (I used WinXP telnet!) What OS/MTA? On CentOS7, I get:
...
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
.
250 2.0.0 Ok: queued as CA21A121D385
quit
221 2.0.0 Bye
Connection closed by foreign host.
You have new mail in /var/spool/mail/root
# netstat -tulpn | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1204/master
tcp6 0 0 ::1:25 :::* LISTEN 1204/master
# ps lww -p 1204
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
5 0 1204 1 20 0 93612 2160 ep_pol Ss ? 0:00 /usr/libexec/postfix/master -w

p.s. WELCOME! Best wishes...

Last edited by Jjanel; 11-06-2016 at 03:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Send emails from Linux Console Using Mutt,Mail & Telnet Command LXer Syndicated Linux News 0 05-06-2013 12:02 AM
getting session request failed whenever send the message using smbclient nagendrar Linux - Newbie 1 11-28-2009 06:14 PM
Send a message to other session/console? cdcshu Linux - Newbie 2 06-19-2007 04:23 AM
Is it possible to send internal mail/message? Mic Q SUSE / openSUSE 3 06-06-2005 02:17 AM
useradd not accepting dot so i am not able to use dot in mail id hanu_raob Linux - General 5 05-13-2004 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration