you'll need to multi-thread each connecting client...lots of examples on the
net.
there are only a few commands for smtp/pop3 defined in the rfcs. the only
confusing thing you may have to tackle is the APOP command. i'll help you
out there. when someone gives your pop3 a HELO, you give them an appropriate
resonse where the text message portion returned is a unique value (usually
in the form of "<2004-04-13 09:30:00>"). your server will "remember" that
value for that client. next, the client issues the APOP command giving you
the user name and the md5 representation of their password concatenated with
your unique value. you get the real password for that user and do the same
concatenation...if your md5 and their md5 don't match, then they have failed
to authenticate...else, you're...errr...they're in business.
the rest is simply issuing the rfc responses to the client's rfc requests.
on the server side of things, you just need to know where the user's mail
folder is in order to retrieve their messages for them. there is one last
thing to note...you need to know where the iis (or whatever smtp software
you are running) mail drop folder is. you can either watch that folder for
newly created files or use cdo's onMailArrival event to look for new
messages. when a new message arrives, you'll need to move the message to the
appropriate user's mailbox/directory.
that's it. happy rfc-ing.
hth,
steve
| i`m trying (
to write an email app
|
| somewhere here i saw a link to
| Lesnikowski dll which is a nice pop3 client
|
| now i need something similar but doing the
|
| server work
|
| and 1 more question
|
| there will be like 50 cliens -
|
| should i use multiple threads or asyncronous operation
|
| or o combination of them?
|
| any urls on the subject are welcome
|
|
|
| TIA
|
|
|
|