Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simpel multithread mailserver...

0 views
Skip to first unread message

Thomas Eg Jørgensen

unread,
Sep 6, 2000, 4:42:27 PM9/6/00
to
Hey there

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


Dirk Claessens

unread,
Sep 7, 2000, 3:32:58 PM9/7/00
to

Thomas Eg Jørgensen <tho...@kontorbutikken.dk> schreef in berichtnieuws
8p6a7d$1kmj$1...@news.cybercity.dk...

> Hey there
>
> 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?

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!
---------------------------------------------------------


Sven Tore Iversen

unread,
Sep 8, 2000, 11:24:01 AM9/8/00
to

"Thomas Eg Jørgensen" <tho...@kontorbutikken.dk> wrote in message
news:8p6a7d$1kmj$1...@news.cybercity.dk...

> Hey there
>
> 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?

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


0 new messages