[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Auto Telnet session to POP3 mail drop

Posted on 1998-04-01
2
Medium Priority
?
355 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

649 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