Table of Contents

Module: relaymanager Twisted-0.19.0/twisted/mail/relaymanager.py

Infrastructure for relaying mail through smart host

Today, internet e-mail has stopped being Peer-to-peer for many problems, spam (unsolicited bulk mail) among them. Instead, most nodes on the internet send all e-mail to a single computer, usually the ISP's though sometimes other schemes, such as SMTP-after-POP, are used. This computer is supposedly permanently up and traceable, and will do the work of figuring out MXs and connecting to them. This kind of configuration is usually termed "smart host", since the host we are connecting to is "smart" (and will find MXs and connect to them) rather then just accepting mail for a small set of domains.

The classes here are meant to facilitate support for such a configuration for the twisted.mail SMTP server

Imported modules   
import cPickle
import os
import string
import time
from twisted.internet import reactor
from twisted.mail import relay, mail, bounce
from twisted.python import delay, log
Functions   
attachManagerToDelayed
checkState
  attachManagerToDelayed 
attachManagerToDelayed (
        manager,
        delayed,
        time=1,
        )

attach a a manager to a Delayed

manager should be an SMTPRelayManager, delayed should be a twisted.python.Delayed and time should be an integer in second, specifying time between checking the state

  checkState 
checkState ( manager )

cause a manager to check the state

Classes   
MXCalculator
Queue

A queue of ougoing emails.

SMTPManagedRelayer

SMTP Relayer which notifies a manager

SmartHostSMTPRelayingManager

Manage SMTP Relayers


Table of Contents

This document was automatically generated on Sun Jul 14 19:52:48 2002 by HappyDoc version 2.0