[Python] SMTP server based on Python?

Discussion in 'Python' started by Peter Smith [gjfc], Dec 6, 2006.

  1. People,

    I have sendmail working on my linux box.

    Since I can use sendmail to send e-mails, would it be easy to write a
    simple Python class which listens for data on port 25?

    Then, if it gets some data, it just passes it to sendmail.

    Do any of you know if such a simple script is floating around somewhere
    on the net?

    ....Peter
    http://GoodJobFastCar.com
     
    Peter Smith [gjfc], Dec 6, 2006
    #1
    1. Advertisements

  2. Peter Smith [gjfc] wrote:
    > I have sendmail working on my linux box.
    >
    > Since I can use sendmail to send e-mails, would it be easy to write a
    > simple Python class which listens for data on port 25?
    >
    > Then, if it gets some data, it just passes it to sendmail.
    >
    > Do any of you know if such a simple script is floating around somewhere
    > on the net?


    >>> import smtpd


    </F>
     
    Fredrik Lundh, Dec 6, 2006
    #2
    1. Advertisements

  3. Peter Smith [gjfc]

    Tim Roberts Guest

    "Peter Smith [gjfc]" <> wrote:
    >
    >I have sendmail working on my linux box.
    >
    >Since I can use sendmail to send e-mails, would it be easy to write a
    >simple Python class which listens for data on port 25?
    >
    >Then, if it gets some data, it just passes it to sendmail.


    Ummm, I'm rather confused as to why you don't just have sendmail do this.
    After all, that is its primary function: to run as a daemon, listening on
    port 25, and delivering incoming messages to local mailboxes.
    --
    Tim Roberts,
    Providenza & Boekelheide, Inc.
     
    Tim Roberts, Dec 7, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    1,325
    Roedy Green
    Jan 24, 2006
  2. pk
    Replies:
    3
    Views:
    925
    Roedy Green
    Feb 13, 2006
  3. Alex Hunsley
    Replies:
    4
    Views:
    4,490
    Tim Williams (gmail)
    Jun 29, 2004
  4. Copelandia Cyanescens

    smtplib.SMTP "no attributes SMTP"

    Copelandia Cyanescens, Jul 31, 2004, in forum: Python
    Replies:
    2
    Views:
    2,140
    Copelandia Cyanescens
    Jul 31, 2004
  5. tshad
    Replies:
    1
    Views:
    1,080
    bruce barker
    May 5, 2008
  6. Peter Smith [gjfc]

    [ruby-talk] Ruby based SMTP server?

    Peter Smith [gjfc], Dec 6, 2006, in forum: Ruby
    Replies:
    3
    Views:
    240
    Francis Cianfrocca
    Dec 6, 2006
  7. Peter Smith [gjfc]

    Perl based SMTP server?

    Peter Smith [gjfc], Dec 6, 2006, in forum: Perl Misc
    Replies:
    1
    Views:
    224
    Joe Smith
    Dec 7, 2006
  8. Peter Smith [gjfc]

    Perl based SMTP server?

    Peter Smith [gjfc], Dec 6, 2006, in forum: Perl Misc
    Replies:
    0
    Views:
    144
    Peter Smith [gjfc]
    Dec 6, 2006
Loading...