Table of Contents

Module: relaymanager Twisted-0.17.4/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 os
import string
from twisted.internet import tcp
from twisted.mail import relay
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
MessageCollection
SMTPManagedRelayer

SMTP Relayer which notifies a manager

SmartHostSMTPRelayingManager

Manage SMTP Relayers


Table of Contents

This document was automatically generated on Sat Apr 20 01:30:55 2002 by HappyDoc version 2.0