Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3451 > unrolled thread

Need to build smtp server in Ruby?

Started bydare ruby <martin@angleritech.com>
First post2011-04-25 03:10 -0500
Last post2011-04-25 13:31 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.ruby


Contents

  Need to build smtp server in Ruby? dare ruby <martin@angleritech.com> - 2011-04-25 03:10 -0500
    Re: Need to build smtp server in Ruby? Brian Candler <b.candler@pobox.com> - 2011-04-25 13:31 -0500

#3451 — Need to build smtp server in Ruby?

Fromdare ruby <martin@angleritech.com>
Date2011-04-25 03:10 -0500
SubjectNeed to build smtp server in Ruby?
Message-ID<6a752cfe1421202b25d9a97091e31af4@ruby-forum.com>
Dear Friends,

I need to build a simple smtp server in ruby, based on Gserver, which
should support most mail clients and need to log the messages iam
receiving.

Kindly any one suggest on this, on how to proceed.

Thanks in advance

Regards
Jose

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [next] | [standalone]


#3467

FromBrian Candler <b.candler@pobox.com>
Date2011-04-25 13:31 -0500
Message-ID<7ee15fee05092aec3137eccf0e40634f@ruby-forum.com>
In reply to#3451
dare ruby wrote in post #994834:
> I need to build a simple smtp server in ruby, based on Gserver, which
> should support most mail clients and need to log the messages iam
> receiving.
>
> Kindly any one suggest on this, on how to proceed.

Sure:

1. Create a subclass of GServer
2. Implement SMTP in it(see RFC 2821)
3. Create an instance of your object and run it

For an example of how to build a server with GServer, just read the 
gserver.rb file in the ruby standard library. But if you're building an 
SMTP server from scratch, I'm afraid there's no shortcut to 
understanding how SMTP works - so you need to read RFC 2821.

I have to say this sounds like a homework question: otherwise, why would 
you say it has to be built on GServer?

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.ruby


csiph-web