On Thursday, June 27, 2002, at 07:49 , Brad Fike wrote:

> I, personally have an smtp server but I still want to write a script that
> does not need it.

actually you want a 'daemon' - not a 'script'
since to be a 'server' - it will need to come up
connect to a specified port - in this case not the
standard canonical SMTP port - and take in requests
and 'broker' them to a 'canonical' smtp server -
so that you can get them back in your email...

So the first part of that drill would be a quick intro
to your friend daemonology in perl:

cf:
http://www.wetware.com/drieux/pbl/Sys/daemon1.txt

the reason that I recommend against trying to do this
with the standard port 25 access is that you will
most likely want to test your server on a host where
that port will most likely be bound by a canonical
SMTP server...

a quick check would be:

vladimir: 53:] netstat -naf inet | egrep "25.*LISTEN"
       *.25                 *.*                0      0     0      0 LISTEN
vladimir: 54:]

this host would NOT let you bind to it...

since you could test it with:

[jeeves:~] drieux% telnet vladimir 25
Trying 199.108.16.3...
Connected to vladimir.
Escape character is '^]'.
220-vladimir.wetware.com Smail-3.2.0.114 (#1 2001-Dec-14)
220-ready at Thu, 27 Jun 2002 08:27:17 -0700 (PDT)
220 ESMTP supported
quit
221 2.2.0 vladimir.wetware.com closing connection
Connection closed by foreign host.
[jeeves:~] drieux%


> Haven't you ever need to write code that was to be used in an environment
> different then your own?

I try to avoid the 'need' at all cost.... 8-)

But I can understand the desire to do these things...

When you want to peek at how this has been traditionally done
check out say:

http://search.cpan.org/search?mode=module&query=Net%3A%3ASMTP%3A%3AServer

you will of course want to look at the 'relay' problems
that will need to be addressed as well....

[..]

I have a few examples on basics of playing with email at:

http://www.wetware.com/drieux/pbl/email/

but a part of your problem it seems will be getting your
email client side to make the connection to your 'special port'.

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to