cleanup
parent
4124db4f84
commit
9a392d88c4
|
@ -36,9 +36,10 @@ else:
|
||||||
|
|
||||||
async def enviarCorreosDominio(dominioid):
|
async def enviarCorreosDominio(dominioid):
|
||||||
valido = int(time.time())
|
valido = int(time.time())
|
||||||
|
|
||||||
if os.environ.get('DKIM_PRIVKEY'):
|
if os.environ.get('DKIM_PRIVKEY'):
|
||||||
try:
|
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()
|
dkimKey = open(os.environ.get('DKIM_PRIVKEY'), 'r').read().encode()
|
||||||
except:
|
except:
|
||||||
await log.warning('Error al abrir el archivo: {}.'.format(os.environ.get('DKIM_PRIVKEY')))
|
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():
|
def create_async_smtp_server():
|
||||||
handler = ilabHandler()
|
|
||||||
|
|
||||||
controller = Controller(handler, hostname=bindip, port=smtprelayport)
|
return Controller(ilabHandler(), hostname=bindip, port=smtprelayport)
|
||||||
|
|
||||||
return controller
|
|
||||||
|
|
||||||
async def pre_process():
|
async def pre_process():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue