Re: Net::Telnet and SMTP
- From: Mike <Mike.Ferrari@xxxxxxxxxxxx>
- Date: Wed, 15 Jun 2005 16:00:52 -0500
Mark Clements wrote:
On 14 Jun 2005 11:18:34 -0700, crr wrote:
I originally tried this out over in comp.lang.perl.modules, but didn't really get anywhere, so I thought I'd take a crack at it over here.
Hi all,
I'm using Net::Telnet to test an SMTP proxy product and I've run into an issue with it.
First, I'm trying to send a sequence of commands and then log both the commands sent and the response from the server into a log file. The responses need to match up EXACTLY to the commands to which they are in response. Second, I've tried Net::SMTP and it doesn't quite do what I need. Since the product I'm testing may have to deal with......er, impolite SMTP clients (read: crackers) I want to make sure that if the SMTP protocol being sent is broken that the proxy reponds in a correct (read: secure) way. Unfortunately Net::SMTP doesn't give me the level of control I need....mostly because it's too polite. ;)
<snip> Hi
It isn't clear what your problem is. What issue are you having with your first requirement and what is the smallest complete program that will demonstrate this?
I am not particularly familiar with Net::Telnet or Net::SMTP, but I would be tempted to use Expect.
Mark
Dump_log input_log and Output_log arguments will give you text files with all the input.. all the output and everything in order both hex and ascii .
You should be able to see the transactions back and forth no problem.. the text logs are primarily used for debug purposes but will work nicely for what you need.
Its all in the readme
Mike .
- Follow-Ups:
- Re: Net::Telnet and SMTP
- From: crr
- Re: Net::Telnet and SMTP
- References:
- Net::Telnet and SMTP
- From: crr
- Re: Net::Telnet and SMTP
- From: Mark Clements
- Net::Telnet and SMTP
- Prev by Date: Re: Selecting a variable - Newbie question
- Next by Date: FAQ 7.13 What is variable suicide and how can I prevent it?
- Previous by thread: Re: Net::Telnet and SMTP
- Next by thread: Re: Net::Telnet and SMTP
- Index(es):
Relevant Pages
|