Module Expr Str Import alias Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index Num Delete SubscriptDel AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad NameLoad Slice Num Str body Continue Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return CompareGt Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad Str ImportFrom alias Return TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad TupleLoad body If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad TryExcept body Delete SubscriptDel AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list ImportFrom alias Expr Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete SubscriptDel AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Continue Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareGtE Call NameLoad NameLoad BinOpSub AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Break If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults SubscriptLoad TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body ImportFrom alias Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list ImportFrom alias Expr Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases body Expr Str Assign NameStore BinOpMult Num Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Dict If CompareIs NameLoad NameLoad body ImportFrom alias Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body ImportFrom alias identifier Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr ListLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias alias Assign NameStore Call NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body If CompareIn NameLoad NameLoad body Return Call NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad orelse If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num orelse Return Call NameLoad Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareGtE NameLoad Num body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Return NameLoad Return SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse Return Call NameLoad Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias alias If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Raise Call NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
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
 N/A rfc822 N/A os N/A time N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle twisted.python log twisted.python.failure Failure twisted.python.compat set twisted.mail relay twisted.mail bounce twisted.internet protocol twisted.internet.defer Deferred DeferredList twisted.internet.error DNSLookupError twisted.mail smtp twisted.application internet ManagedRelayerMixin N/A N/A N/A SMTP Relayer which notifies a manager

    Notify the manager about successful mail, failed mail
    and broken connections
     __init__ N/A N/A self manager N/A N/A N/A N/A self manager manager N/A sentMail N/A N/A self code resp numOk addresses log N/A N/A N/A called when e-mail has been sent

        we will always get 0 or 1 addresses.
         N/A message N/A N/A self names N/A 0 N/A N/A code N/A smtp SUCCESS N/A N/A N/A N/A N/A self manager notifySuccess N/A self factory message N/A N/A N/A N/A N/A self manager notifyFailure N/A self factory message N/A N/A N/A self messages N/A 0 N/A N/A N/A self names N/A 0 N/A connectionLost N/A N/A self reason N/A N/A N/A called when connection is broken

        notify manager we will try to send no more e-mail
         N/A N/A N/A N/A self manager notifyDone N/A self factory N/A N/A SMTPManagedRelayer N/A ManagedRelayerMixin N/A relay SMTPRelayer N/A __init__ N/A N/A self messages manager N/A args kw N/A N/A 
        @type messages: C{list} of C{str}
        @param messages: Filenames of messages to relay

        manager should support .notifySuccess, .notifyFailure
        and .notifyDone
         N/A N/A N/A ManagedRelayerMixin __init__ self manager N/A N/A N/A N/A relay SMTPRelayer __init__ self messages args kw N/A N/A ESMTPManagedRelayer N/A ManagedRelayerMixin N/A relay ESMTPRelayer N/A __init__ N/A N/A self messages manager N/A args kw N/A N/A 
        @type messages: C{list} of C{str}
        @param messages: Filenames of messages to relay

        manager should support .notifySuccess, .notifyFailure
        and .notifyDone
         N/A N/A N/A ManagedRelayerMixin __init__ self manager N/A N/A N/A N/A relay ESMTPRelayer __init__ self messages args kw N/A N/A SMTPManagedRelayerFactory N/A N/A protocol ClientFactory N/A N/A protocol SMTPManagedRelayer __init__ N/A N/A self messages manager N/A args kw N/A N/A N/A self messages messages N/A N/A self manager manager N/A N/A self pArgs args N/A N/A self pKwArgs kw N/A buildProtocol N/A N/A self addr N/A N/A N/A protocol N/A N/A self protocol N/A self messages N/A self manager N/A self pArgs N/A self pKwArgs N/A N/A protocol factory self N/A protocol N/A clientConnectionFailed N/A N/A self connector reason N/A N/A N/A called when connection could not be made

        our manager should be notified that this happened,
        it might prefer some other host in that case N/A N/A N/A N/A self manager notifyNoConnection self N/A N/A N/A N/A self manager notifyDone self N/A N/A ESMTPManagedRelayerFactory N/A SMTPManagedRelayerFactory N/A N/A protocol ESMTPManagedRelayer __init__ N/A N/A self messages manager secret contextFactory N/A args kw N/A N/A N/A self secret secret N/A N/A self contextFactory contextFactory N/A N/A N/A SMTPManagedRelayerFactory __init__ self messages manager args kw N/A buildProtocol N/A N/A self addr N/A N/A N/A s N/A N/A self secret N/A N/A self secret addr N/A protocol N/A N/A self protocol N/A self messages N/A self manager s N/A self contextFactory N/A self pArgs N/A self pKwArgs N/A N/A protocol factory self N/A protocol N/A N/A Queue N/A N/A N/A A queue of ougoing emails. N/A noisy True __init__ N/A N/A self directory N/A N/A N/A N/A self directory directory N/A N/A N/A self _init N/A _init N/A N/A self N/A N/A N/A N/A self n 0 N/A N/A self waiting N/A N/A N/A self relayed N/A N/A N/A N/A self readDirectory N/A __getstate__ N/A N/A self N/A N/A N/A (internal) delete volatile state N/A N/A directory N/A self directory N/A __setstate__ N/A N/A self state N/A N/A N/A (internal) restore volatile state N/A N/A N/A N/A self __dict__ update state N/A N/A N/A self _init N/A readDirectory N/A N/A self N/A N/A N/A Read the messages directory.

        look for new messages.
         N/A message N/A N/A os listdir N/A self directory N/A N/A N/A N/A message N/A -2 -D N/A N/A N/A N/A N/A self addMessage N/A message N/A -2 N/A getWaiting N/A N/A self N/A N/A N/A N/A N/A N/A self waiting keys N/A hasWaiting N/A N/A self N/A N/A N/A N/A N/A len N/A self waiting 0 N/A getRelayed N/A N/A self N/A N/A N/A N/A N/A N/A self relayed keys N/A setRelaying N/A N/A self message N/A N/A N/A N/A N/A self waiting N/A message N/A N/A N/A self relayed N/A message 1 N/A setWaiting N/A N/A self message N/A N/A N/A N/A N/A self relayed N/A message N/A N/A N/A self waiting N/A message 1 N/A addMessage N/A N/A self message N/A N/A N/A N/A message N/A self relayed N/A N/A N/A N/A self waiting N/A message 1 N/A N/A self noisy N/A N/A N/A N/A log msg N/A N/A Set  message  waiting N/A done N/A N/A self message N/A N/A N/A Remove message to from queue. N/A message N/A N/A N/A os path basename message N/A N/A N/A os remove N/A N/A N/A self getPath message -D N/A N/A N/A os remove N/A N/A N/A self getPath message -H N/A N/A N/A self relayed N/A message N/A getPath N/A N/A self message N/A N/A N/A Get the path in the filesystem of a message. N/A N/A N/A N/A os path join N/A self directory message N/A getEnvelope N/A N/A self message N/A N/A N/A N/A N/A pickle load N/A N/A self getEnvelopeFile message N/A getEnvelopeFile N/A N/A self message N/A N/A N/A N/A open N/A N/A N/A os path join N/A self directory N/A message -H rb N/A createNewMessage N/A N/A self N/A N/A N/A Create a new message in the queue.

        Return a tuple - file-like object for headers, and ISMTPMessage.
         N/A fname N/A %s_%s_%s_%s N/A N/A N/A os getpid N/A N/A time time N/A self n N/A id self N/A N/A self n N/A N/A self n 1 N/A headerFile N/A open N/A N/A N/A os path join N/A self directory N/A fname -H wb N/A tempFilename N/A N/A N/A os path join N/A self directory N/A fname -C N/A finalFilename N/A N/A N/A os path join N/A self directory N/A fname -D N/A messageFile N/A open tempFilename wb twisted.mail.mail FileMessage N/A N/A headerFile N/A FileMessage messageFile tempFilename finalFilename N/A N/A _AttemptManager N/A object N/A N/A 
    Manage the state of a single attempt to flush the relay queue.
     __init__ N/A N/A self manager N/A N/A N/A N/A self manager manager N/A N/A self _completionDeferreds N/A N/A getCompletionDeferred N/A N/A self N/A N/A N/A N/A N/A N/A self _completionDeferreds append N/A Deferred N/A N/A N/A self _completionDeferreds N/A -1 N/A _finish N/A N/A self relay message N/A N/A N/A N/A N/A N/A N/A N/A self manager managed N/A relay remove N/A N/A N/A os path basename message N/A N/A N/A N/A N/A self manager queue done message N/A notifySuccess N/A N/A self relay message N/A N/A N/A a relay sent a message successfully

        Mark it as sent in our lists
         N/A N/A N/A N/A self manager queue noisy N/A N/A N/A N/A log msg N/A success sending %s, removing from queue message N/A N/A N/A self _finish relay message N/A notifyFailure N/A N/A self relay message N/A N/A N/A Relaying the message has failed. N/A N/A N/A N/A self manager queue noisy N/A N/A N/A N/A log msg N/A could not relay  message N/A message N/A N/A N/A os path basename message N/A fp N/A N/A N/A N/A self manager queue getEnvelopeFile message N/A N/A from_ to N/A N/A pickle load fp N/A N/A N/A fp close N/A N/A from_ to bounceMessage N/A N/A bounce generateBounce N/A open N/A N/A N/A N/A N/A self manager queue getPath message -D from_ to N/A N/A fp outgoingMessage N/A N/A N/A N/A self manager queue createNewMessage N/A N/A N/A pickle dump N/A from_ to fp N/A N/A N/A fp close N/A line N/A N/A bounceMessage splitlines N/A N/A N/A N/A outgoingMessage lineReceived line N/A N/A N/A outgoingMessage eomReceived N/A N/A N/A self _finish relay N/A N/A N/A N/A self manager queue getPath message N/A notifyDone N/A N/A self relay N/A N/A N/A A relaying SMTP client is disconnected.

        unmark all pending messages under this relay's responsibility
        as being relayed, and remove the relay.
         N/A message N/A N/A N/A N/A self manager managed get relay N/A N/A N/A N/A N/A N/A self manager queue noisy N/A N/A N/A N/A log msg N/A N/A Setting  message  waiting N/A N/A N/A N/A N/A self manager queue setWaiting message N/A N/A N/A N/A N/A N/A self manager managed N/A relay N/A N/A N/A KeyError N/A N/A N/A notifications N/A self _completionDeferreds N/A N/A self _completionDeferreds None N/A d notifications N/A N/A N/A N/A d callback None N/A notifyNoConnection N/A N/A self relay N/A N/A N/A Relaying SMTP client couldn't connect.

        Useful because it tells us our upstream server is unavailable.
         N/A N/A N/A msgs N/A N/A N/A self manager managed N/A relay N/A N/A N/A KeyError N/A N/A N/A N/A log msg notifyNoConnection passed unknown relay! N/A N/A N/A N/A N/A self manager queue noisy N/A N/A N/A N/A log msg N/A Backing off on delivery of  N/A str msgs setWaiting N/A N/A queue messages N/A N/A N/A N/A map N/A queue setWaiting messages N/A twisted.internet reactor N/A N/A N/A reactor callLater 30 setWaiting N/A N/A self manager queue msgs N/A N/A N/A N/A self manager managed N/A relay N/A N/A SmartHostSMTPRelayingManager N/A N/A N/A Manage SMTP Relayers

    Manage SMTP relayers, keeping track of the existing connections,
    each connection's responsibility in term of messages. Create
    more relayers if the need arises.

    Someone should press .checkState periodically

    @ivar fArgs: Additional positional arguments used to instantiate
    C{factory}.

    @ivar fKwArgs: Additional keyword arguments used to instantiate
    C{factory}.

    @ivar factory: A callable which returns a ClientFactory suitable for
    making SMTP connections.
     N/A factory SMTPManagedRelayerFactory N/A PORT 25 N/A mxcalc None __init__ N/A N/A self queue maxConnections maxMessagesPerConnection N/A 2 10 N/A N/A 
        @type queue: Any implementor of C{IQueue}
        @param queue: The object used to queue messages on their way to
        delivery.

        @type maxConnections: C{int}
        @param maxConnections: The maximum number of SMTP connections to
        allow to be opened at any given time.

        @type maxMessagesPerConnection: C{int}
        @param maxMessagesPerConnection: The maximum number of messages a
        relayer will be given responsibility for.

        Default values are meant for a small box with 1-5 users.
         N/A N/A self maxConnections maxConnections N/A N/A self maxMessagesPerConnection maxMessagesPerConnection N/A N/A self managed N/A N/A N/A self queue queue N/A N/A self fArgs N/A N/A N/A self fKwArgs N/A N/A __getstate__ N/A N/A self N/A N/A N/A (internal) delete volatile state N/A dct N/A N/A N/A self __dict__ copy N/A N/A dct N/A managed N/A dct N/A __setstate__ N/A N/A self state N/A N/A N/A (internal) restore volatile state N/A N/A N/A N/A self __dict__ update state N/A N/A self managed N/A N/A checkState N/A N/A self N/A N/A N/A 
        Synchronize with the state of the world, and maybe launch a new
        relay.

        Call me periodically to check I am still up to date.

        @return: None or a Deferred which fires when all of the SMTP clients
        started by this call have disconnected.
         N/A N/A N/A N/A self queue readDirectory N/A N/A N/A len N/A self managed N/A self maxConnections N/A N/A N/A N/A N/A N/A N/A self queue hasWaiting N/A N/A N/A N/A N/A self _checkStateMX N/A _checkStateMX N/A N/A self N/A N/A N/A nextMessages N/A N/A N/A self queue getWaiting N/A N/A N/A nextMessages reverse N/A exchanges N/A N/A msg nextMessages N/A N/A N/A from_ to N/A N/A N/A self queue getEnvelope msg N/A N/A name addr N/A N/A rfc822 parseaddr to N/A parts N/A N/A addr split @ 1 N/A N/A N/A len parts 2 N/A N/A N/A N/A log err N/A Illegal message destination:  to N/A N/A domain N/A parts N/A 1 N/A N/A N/A N/A self queue setRelaying msg N/A N/A N/A N/A N/A exchanges setdefault domain N/A append N/A N/A N/A self queue getPath msg N/A N/A N/A len exchanges N/A N/A self maxConnections N/A len N/A self managed N/A N/A N/A N/A N/A self mxcalc None N/A N/A N/A self mxcalc N/A MXCalculator N/A relays N/A N/A N/A domain msgs N/A N/A exchanges iteritems N/A N/A manager N/A _AttemptManager self N/A factory N/A N/A self factory msgs manager N/A self fArgs N/A self fKwArgs N/A N/A N/A self managed N/A factory N/A map N/A N/A os path basename msgs N/A relayAttemptDeferred N/A N/A manager getCompletionDeferred N/A connectSetupDeferred N/A N/A N/A self mxcalc getMX domain N/A N/A N/A connectSetupDeferred addCallback N/A N/A N/A mx N/A N/A str N/A mx name N/A N/A N/A connectSetupDeferred addCallback N/A self _cbExchange N/A self PORT factory N/A N/A N/A connectSetupDeferred addErrback N/A N/A N/A err N/A N/A N/A N/A N/A relayAttemptDeferred errback err err N/A 1 N/A N/A N/A connectSetupDeferred addErrback N/A self _ebExchange factory domain N/A N/A N/A relays append relayAttemptDeferred N/A N/A DeferredList relays N/A _cbExchange N/A N/A self address port factory N/A N/A twisted.internet reactor N/A N/A N/A reactor connectTCP address port factory N/A _ebExchange N/A N/A self failure factory domain N/A N/A N/A N/A N/A log err N/A Error setting up managed relay factory for  domain N/A N/A N/A log err failure setWaiting N/A N/A queue messages N/A N/A N/A N/A map N/A queue setWaiting messages N/A twisted.internet reactor N/A N/A N/A reactor callLater 30 setWaiting N/A self queue N/A N/A self managed N/A factory N/A N/A N/A self managed N/A factory N/A N/A SmartHostESMTPRelayingManager N/A SmartHostSMTPRelayingManager N/A N/A factory ESMTPManagedRelayerFactory N/A _checkState N/A N/A manager N/A N/A N/A N/A N/A manager checkState N/A RelayStateHelper N/A N/A manager delay N/A N/A N/A N/A N/A internet TimerService delay _checkState manager N/A CanonicalNameLoop N/A Exception N/A N/A 
    When trying to look up the MX record for a host, a set of CNAME records was
    found which form a cycle and resolution was abandoned.
     N/A CanonicalNameChainTooLong N/A Exception N/A N/A 
    When trying to look up the MX record for a host, too many CNAME records
    which point to other CNAME records were encountered and resolution was
    abandoned.
     N/A MXCalculator N/A N/A N/A 
    A utility for looking up mail exchange hosts and tracking whether they are
    working or not.

    @ivar clock: L{IReactorTime} provider which will be used to decide when to
        retry mail exchanges which have not been working.
     N/A timeOutBadMX N/A 60 60 N/A fallbackToDomain True __init__ N/A N/A self resolver clock N/A None None N/A N/A N/A self badMXs N/A N/A N/A resolver None N/A twisted.names.client createResolver N/A resolver N/A createResolver N/A N/A self resolver resolver N/A N/A clock None N/A twisted.internet reactor clock N/A N/A self clock clock N/A markBad N/A N/A self mx N/A N/A N/A Indicate a given mx host is not currently functioning.

        @type mx: C{str}
        @param mx: The hostname of the host which is down.
         N/A N/A N/A self badMXs N/A N/A str mx N/A N/A N/A N/A self clock seconds N/A self timeOutBadMX N/A markGood N/A N/A self mx N/A N/A N/A Indicate a given mx host is back online.

        @type mx: C{str}
        @param mx: The hostname of the host which is up.
         N/A N/A N/A N/A N/A self badMXs N/A mx N/A N/A N/A KeyError N/A N/A N/A getMX N/A N/A self domain maximumCanonicalChainLength N/A 3 N/A N/A 
        Find an MX record for the given domain.

        @type domain: C{str}
        @param domain: The domain name for which to look up an MX record.

        @type maximumCanonicalChainLength: C{int}
        @param maximumCanonicalChainLength: The maximum number of unique CNAME
            records to follow while looking up the MX record.

        @return: A L{Deferred} which is called back with a string giving the
            name in the found MX record or which is errbacked if no MX record
            can be found.
         N/A mailExchangeDeferred N/A N/A N/A self resolver lookupMailExchange domain N/A N/A N/A mailExchangeDeferred addCallback N/A self _filterRecords N/A N/A N/A mailExchangeDeferred addCallback N/A self _cbMX domain maximumCanonicalChainLength N/A N/A N/A mailExchangeDeferred addErrback N/A self _ebMX domain N/A mailExchangeDeferred N/A _filterRecords N/A N/A self records N/A N/A N/A 
        Convert a DNS response (a three-tuple of lists of RRHeaders) into a
        mapping from record names to lists of corresponding record payloads.
         N/A recordBag N/A N/A answer N/A records N/A 0 N/A N/A N/A N/A N/A N/A recordBag setdefault N/A str N/A answer name N/A append N/A answer payload N/A recordBag N/A _cbMX N/A N/A self answers domain cnamesLeft N/A N/A N/A 
        Try to find the MX host from the given DNS information.

        This will attempt to resolve CNAME results.  It can recognize loops
        and will give up on non-cyclic chains after a specified number of
        lookups.
         twisted.names dns error N/A seenAliases N/A set N/A exchanges N/A N/A pertinentRecords N/A N/A answers get domain N/A N/A pertinentRecords N/A N/A record N/A N/A pertinentRecords pop N/A N/A N/A record TYPE N/A dns CNAME N/A N/A N/A N/A seenAliases add domain N/A canonicalName N/A str N/A record name N/A N/A canonicalName answers N/A N/A N/A canonicalName seenAliases N/A N/A N/A Failure N/A CanonicalNameLoop record N/A pertinentRecords N/A answers N/A canonicalName N/A exchanges N/A N/A N/A cnamesLeft N/A N/A N/A N/A self getMX canonicalName N/A cnamesLeft 1 N/A N/A N/A Failure N/A CanonicalNameChainTooLong record N/A N/A N/A record TYPE N/A dns MX N/A N/A N/A N/A exchanges append N/A N/A record preference record N/A exchanges N/A N/A N/A N/A exchanges sort N/A N/A preference record exchanges N/A N/A host N/A str N/A record name N/A N/A host N/A self badMXs N/A N/A record N/A t N/A N/A N/A N/A self clock seconds N/A N/A self badMXs N/A host N/A N/A t 0 N/A N/A N/A N/A self badMXs N/A host N/A record N/A N/A N/A exchanges N/A 0 N/A 1 N/A N/A N/A Failure N/A N/A error DNSNameError N/A No MX records for %r N/A domain N/A _ebMX N/A N/A self failure domain N/A N/A twisted.names error dns N/A N/A self fallbackToDomain N/A N/A N/A N/A failure trap N/A error DNSNameError N/A N/A N/A log msg N/A MX lookup failed; attempting to use hostname (%s) directly N/A domain N/A d N/A N/A N/A self resolver getHostByName domain cbResolved N/A N/A addr N/A N/A N/A N/A N/A dns Record_MX name addr N/A ebResolved N/A N/A err N/A N/A N/A N/A N/A err trap N/A error DNSNameError N/A N/A DNSLookupError N/A N/A N/A N/A d addCallbacks cbResolved ebResolved N/A d N/A N/A N/A N/A failure check N/A error DNSNameError N/A N/A N/A IOError N/A No MX found for %r N/A domain N/A failure N/A N/A