initial upload
This commit is contained in:
27
smmapd_prototype/CyrusChecker.py
Normal file
27
smmapd_prototype/CyrusChecker.py
Normal file
@ -0,0 +1,27 @@
|
||||
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>"
|
||||
|
Reference in New Issue
Block a user