Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Communications > Email

    smtp2zope 1.1

    Download button

    No screenshots available
    Downloads: 223  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Maurits van Rees | More programs
    GPL / FREE
    May 5th, 2011, 11:45 GMT [view history]
    ROOT / Communications / Email

     Read user reviews (0)  Refer to a friend  Subscribe

    smtp2zope description

    Read an email from stdin and forward it to a URL

    smtp2zope is a Python script that takes an email as input, does some transformation, and submits it to a backend server using a URL. Traditionally, Zope is expected to be the receiving server, hence the name, but should work fine for other servers too.

    Originally, the code here comes from the MailBoxer product for Zope.

    Usage

    When installing this package, a smtp2zope script is generated. The script reads from standard input and expects a url and optional maximum number of bytes as arguments:

    smtp2zope URL [MAXBYTES]

    URL:

     call this URL with the email as a post-request. Authentication can be included in URL: http://username:password@example.org/some-page

    MAXBYTES:

     optional: only forward mails with a size of less than MAXBYTES to the URL

    So a test run could look like this:

    cat testmail.txt > /path/to/smtp2zope http://admin:secret@example.org/my-mail-handler

    Mail server integration

    Mail comes in through a mail server. So when you want mail for mailme@example.org to be handled by smtp2zope and sent to your web server, you should add an alias in your smtp server configuration. Something like this probably works (there might be slight differences depending on which mail server you use):

    mailme@example.org "|/path/to/smtp2zope http://admin:secret@example.org/my-mail-handler 1000000"

    The number at the end restricts the maximum size of a message; this is optional, but highly recommended.

    Debugging

    Please note: output is logged to maillog per default on unices. See your maillog (e.g. /var/log/mail.log) to debug problems with the setup.

    Buildout

    If you like setting up your project with zc.buildout (I myself do), this simple snippet is enough to create the bin/smtp2zope script:

    [script]
    recipe = zc.recipe.egg
    eggs = smtp2zope



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Use a better way to determine the basic authentication information that is passed in the url so the logic does not fail when the url has an @ sign somewhere else. [maurits]
    · Fixed error "local variable 'AUTHORIZATION' referenced before assignment" when not using basic authentication (http://user:pw@example.com). [maurits]

      


    TAGS:

    email reader | backend server | stdin | email | reader

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM