on Wed, 21 Aug 2002 09:47:49 GMT, [EMAIL PROTECTED] (Connie Chan)
wrote: 

> What my approach is to write my own mail server. So can block
> address, or matched content pattern immediately. But what my first
> step is ... how to listening to my SMTP port ? Would anybody can
> point me to somewhere to getting start ? 

So you want to write your own SMTP server on win32. Quite an 
ambitious project.

As a first step, you probably want to study RFC 821:

    <http://www.ietf.org/rfc/rfc0821.txt>

After that (if you are still confident ;-) I would recommend Lincoln 
Stein's "Network Programming with Perl":

    <http://modperl.com:9000/perl_networking/>

Be assured that this is not a simple project: you will need to 
consider multithreading, multiplexing or forking, non-blocking IO 
etc...
You will also need to find a way to deliver the mails to your client, 
for which you might want to check out RFC 1939:

    <http://www.ietf.org/rfc/rfc1939.txt>


Good luck! (you will need it ;-)

Errr... I take that back: CPAN is your friend and it appears some 
good soul has already done it:

<http://search.cpan.org/author/MACGYVER/SMTP-Server-1.1/Server.pm>

And if you look carefully on CPAN, you will even find spam related 
modules that work with it.

-- 
felix


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

Reply via email to