i would like to make a mailserver for a speciel web-application, but my
problem is how i make the mailserver itself. Should i create a socket which
listen to port 110 and one on port 25, whenever a user tries to connect i
create a thread with a socket and then sends the handle to that socket?
I'm not much into sockets(though i have been messing around with it), so
maybe anyone could help me a little with some code? or maybe the SMTP and
POP3 standard protocols?
All help will be apreciated!
(Feel free to use my email to send code)
/*Thomas Eg Jørgensen
Quite an impressive undertaking... Even if you could implement the relevant
RFC's for SMTP/POP3, this is only the top of the iceberg. Every mailserver
needs the service of a DNS-server. The problem is that you cannot directly
(point-to-point) send mail to a destination at the other end of the
Internet, simply because you don't know the "next post office" to send the
mail to. Theoretically, the DNS of your ISP can be interrogated on port 53
see RFC 883 and others )
Perhaps a simpler solution would be to use Delphi's NMSMTP & NMPOP3
components. With these you can forward and receive mail to/from an
ISP-account.
--
Regards,
Dirk Claessens
---------------------------------------------------------
http://www.claessens16.yucom.be
Attention: All spamshields raised; E-mails will bounce!
---------------------------------------------------------
See the Indy(WinShoes) page. I so they had a server project going.
think it was GPL.
--
Sven Tore Iversen
mai...@sventore.com
http://www.sventore.com