bagas
1
Hello.
I'm setting up SMTP from Yandex.
> /tool e-mail print
server: smtp.yandex.ru
port: 587
tls: yes
vrf: main
from: set@yandex.ru
user: set@yandex.ru
password: p3fflsdf9849875jghidjg
last-status: failed
The letter is not sent, I see in the logs:
Error sending e-mail <my test mail.>: TLS handshake failed
How to fix it?
1 Like
patrikg
2
You could try in tls setting set it to starttls.
Some SMTP servers start without TLS until the STARTTLS command, then TLS communication starts.
Also, some SMTP servers use different ports, so check how it should be set for your SMTP server. 465
This is in the manual:
Whether to use TLS encryption:
- yes - sends STARTTLS and drops the session if TLS is not available on the server
- no - do not send STARTTLS
- starttls - sends STARTTLS and continue without TLS if a server responds that TLS is not available
bagas
3
parameters are correct.
smtp.yandex.ru or 77.88.21.158
port 587
It's probably an issue with the SSL on the Mikrotik, something Yandex Mail doesn't like.
bagas
4
I tried using smtp.gmail.com
> /tool e-mail print
server:smtp.gmail.com
port: 587
tls: yes
Error
Error sending e-mail <my test mail.>: TLS handshake failed
bagas
5
I reconfigured it like this and it works now.
> /tool e-mail print
server: 142.250.102.109
port: 587
tls: starttls
vrf: main
from: set@gmail.com
user: set@gmail.com
password: sdkjfhekj98347598345jehg
last-status: succeeded