TLS port 25
parent
c35b218bc3
commit
58be0599bf
|
@ -49,7 +49,7 @@ async def enviarCorreosDominio(dominioid):
|
||||||
try:
|
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)
|
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.connect()
|
||||||
await smtp.starttls()
|
# await smtp.starttls()
|
||||||
conectado = True
|
conectado = True
|
||||||
await log.debug('Conectado a START_TLS: 25 {}'.format(dbdireccion.ipaddr))
|
await log.debug('Conectado a START_TLS: 25 {}'.format(dbdireccion.ipaddr))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -62,7 +62,7 @@ async def enviarCorreosDominio(dominioid):
|
||||||
await smtp.connect()
|
await smtp.connect()
|
||||||
await smtp.starttls()
|
await smtp.starttls()
|
||||||
conectado = True
|
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:
|
except Exception as e:
|
||||||
conectado = False
|
conectado = False
|
||||||
await log.debug('Error al conectar al servidor start_tls 465: {}'.format(e))
|
await log.debug('Error al conectar al servidor start_tls 465: {}'.format(e))
|
||||||
|
|
Loading…
Reference in New Issue