TLS auth problem - TLS packet with unexpected length was received

Hi, I’m using OJS 3.0.1.0 and I need to authenticated against a designated server that uses TLS
I’ve tried every possible combination . With smtp on, mails doesn’t deliver at all
and with this conf, my exim log shows this error, also the server administrator says the from name, shown in his logs as null

Any Ideas
Thnanks in advance


;;;;;;;;;;;;;;;;;;2017-09-19 16:04:39 1duNoq-0008JA-Ut TLS error on connection to correo1.sap.org.ar [200.89.143.164] (recv): A TLS packet with unexpected length was received.
2017-09-19 16:04:39 1duNoq-0008JA-Ut TLS error on connection to correo1.sap.org.ar [200.89.143.164] (send): The specified session has been invalidated for some reason.

; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

; Use SMTP for sending mail instead of mail()
; smtp = On

; SMTP server settings
smtp_server = correo.sap.org.ar
smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = tls
smtp_username = xxxxxxxx
smtp_password = xxxxxxxx

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
allow_envelope_sender = On

; Default envelope sender to use if none is specified elsewhere
default_envelope_sender = publicaciones@sap.org.ar

; Force the default envelope sender (if present)
; This is useful if setting up a site-wide noreply address
; The reply-to field will be set with the reply-to or from address.
; force_default_envelope_sender = Off

Hi @Marcela_Giussani,

In the configuration file you quote above, the SMTP setting is commented out, as it begins with a ;. Remove the ; or it won’t have any effect.

Regards,
Alec Smecher
Public Knowledge Project Team

when uncommented, no emails are sent
Thanks

Hi @Marcela_Giussani,

For TLS delivery, you may also need to prefix the hostname with tls:// and use the TLS port number. This will depend on what your SMTP server expects/accepts.

Regards,
Alec Smecher
Public Knowledge Project Team