?
Solved

Auto Telnet session to POP3 mail drop

Posted on 1998-04-01
2
Medium Priority
?
346 Views
Last Modified: 2013-12-26
Hello:
I actually have two questions rolled into one situation.

I need to automate a telnet connection from a UNIX box to a POP3 compliant mail server.

Obviously, I need to pass a username:password pair to the Mail daemon.. but how?  Then I need to have the mail deamon send all messages to the UNIX box from which I'm invoking this capability.

I was hoping a meta-character coupled with the RETR command would work (RETR *)... but it does not. <duh>

Can anyone offer assistance?

Thanks.

0
Comment
Question by:xtian120897
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
seedy earned 240 total points
ID: 1296221
There is no straight forward shell script based solution
for this - atleast in my opinion.    The reason being
you cannot redirect input to commands like telent from normal
files are pipes - they do a lot of ioctl calls that fail on the
normal files.

You could write a small 'c' program that
  1. open pty (read man pages for more details)
  2. fork and exec telnet
  3. communicate to the telnet thru the pty
  4. send USER, PASS commands to the authenticate
  5. send RETR command to retrieve.

One more point, you cannot use RETR *.  You must sepcify
a message/mail number.  You normally would use LIST and then
RETR for the messages 'listed'.
Hope this helps.
-Seedy-
 
0
 
LVL 2

Expert Comment

by:seedy
ID: 1296222
Sorry, I lost the big picture here.  Your intention is to get
all the mails down to your UNIX box.  It is rather
easily done through making a socket connection than
through the 'pty' and telnet.
Cheers,
-Chellah-
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question