TLS port 25

master
ifiguero 2022-01-21 20:51:31 -03:00
parent c35b218bc3
commit 58be0599bf
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ async def enviarCorreosDominio(dominioid):
try:
smtp = aiosmtplib.SMTP(hostname=str(dbdireccion.ipaddr), source_address=banner_hostname, port=25, start_tls=True, use_tls=False, validate_certs=False, client_cert=certfile, client_key=keyfile, cert_bundle=cacerts, timeout=10)
await smtp.connect()
await smtp.starttls()
# await smtp.starttls()
conectado = True
await log.debug('Conectado a START_TLS: 25 {}'.format(dbdireccion.ipaddr))
except Exception as e:
@ -62,7 +62,7 @@ async def enviarCorreosDominio(dominioid):
await smtp.connect()
await smtp.starttls()
conectado = True
await log.debug('Conectado a START_TLS 456: {}'.format(dbdireccion.ipaddr))
await log.debug('Conectado a USE_TLS 456: {}'.format(dbdireccion.ipaddr))
except Exception as e:
conectado = False
await log.debug('Error al conectar al servidor start_tls 465: {}'.format(e))