'When a connection to the mail exchange server cannot be established,
prepare to resend messages later.
@type relay: L{SMTPManagedRelayerFactory}
@param relay: The factory for the relayer meant to use the connection.'

def notifyNoConnection(self, relay):

    try:
        msgs = self.manager.managed[relay]
    except KeyError:
        log.msg('notifyNoConnection    passed    unknown    relay!')
        return
    if self.noisy:
        log.msg(('Backing    off    on    delivery    of    ' + str(msgs)))
    def setWaiting(queue, messages):
        map(queue.setWaiting, messages)
    self.reactor.callLater(30, setWaiting, self.manager.queue, msgs)
    del self.manager.managed[relay]
