28 lines
711 B
Python
28 lines
711 B
Python
from Logging import *
|
|
|
|
from SendmailSocketMapHandler import smmapBaseHandlerWorker
|
|
from SendmailSocketMapHandler import smmapBaseHandlerContainer
|
|
from SendmailSocketMapHandler import MyPermanentVerifierException
|
|
from SendmailSocketMapHandler import MyTemporaryVerifierException
|
|
|
|
from VerifierHandler import MySMTP
|
|
|
|
class MyLMTP(MySMTP):
|
|
def lhlo(self, param):
|
|
return self.docmd("lhlo " + param)
|
|
|
|
class CyrusCheckerWorker(smmapBaseHandlerWorker):
|
|
OK = "OK"
|
|
NOK = "NOK"
|
|
TEMPNOK = "TEMPNOK"
|
|
|
|
def execute(self, data):
|
|
debug("data " + data)
|
|
|
|
host, address = data.split('|')
|
|
|
|
debug("host: (%s), address: (%s)" % (host, address))
|
|
|
|
return "<OK>"
|
|
|