def start(self):
        for porttry in range(_maxTries):
            port = _startPort + ((porttry + os.getpid()) % _maxTries)
            try:
                self.address = ('localhost', port)
                self.smtp = MockSmtpServer(self.address, None)
                break
            except Exception:
                pass
        else:
            raise Exception('Could not bind to any port for Mock SMTP server')

        self.thread = threading.Thread(target=self.loop)
        self.thread.daemon = True
        self.thread.start()
Start the mock SMTP server. Attempt to bind to any port within the
dataset/ETHPy150Open girder/girder/tests/mock_smtp.py/MockSmtpReceiver.start