master
ifiguero 2022-07-16 18:12:21 -04:00
parent 4124db4f84
commit 9a392d88c4
1 changed files with 3 additions and 5 deletions

View File

@ -36,9 +36,10 @@ else:
async def enviarCorreosDominio(dominioid):
valido = int(time.time())
if os.environ.get('DKIM_PRIVKEY'):
try:
await log.info('Leyendo llave: {}.'.format(os.environ.get('DKIM_PRIVKEY')))
await log.debug('Leyendo llave: {}.'.format(os.environ.get('DKIM_PRIVKEY')))
dkimKey = open(os.environ.get('DKIM_PRIVKEY'), 'r').read().encode()
except:
await log.warning('Error al abrir el archivo: {}.'.format(os.environ.get('DKIM_PRIVKEY')))
@ -211,11 +212,8 @@ async def cleanupSent():
def create_async_smtp_server():
handler = ilabHandler()
controller = Controller(handler, hostname=bindip, port=smtprelayport)
return controller
return Controller(ilabHandler(), hostname=bindip, port=smtprelayport)
async def pre_process():
try: