def main(): credChecker = CredChecker() credChecker.addUser('foo', 'bar') print 'Defined Users:', credChecker.users realm = DummyRealm() f = Factory() f.protocol = POP3 f.portal = Portal(realm, (credChecker,)) f.protocol.portal = f.portal print 'Portal Credential Interfaces', f.portal.listCredentialsInterfaces() PORT = 2110 print 'PORT', PORT tpf.startDebugMode() reactor.listenTCP(PORT, f) reactor.run()