Cant send email through local smtp server.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • happyfriday
    Member
    • Jun 2025
    • 34

    #1

    Cant send email through local smtp server.

    Hello!

    I am trying to connect my locally hosted Espo to a local smtp relay server. Here are my smtp settings.
    Click image for larger version

Name:	image.png
Views:	63
Size:	139.3 KB
ID:	120629

    When I try sending a test email, i find this error in my logs:
    [2025-08-19 14:22:58] ERROR: (0) Email sending error: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed :: D:\project_management_tools\espocrm\vendor\symfony \mailer\Transport\Smtp\Stream\SocketStream.php(171 )
    [2025-08-19 14:22:58] WARNING: Email sending:unknownError; 0

    I can establish a connection with the smtp address as shown here:
    Click image for larger version

Name:	image.png
Views:	30
Size:	60.2 KB
ID:	120630​​​
    I've tried adding configurations to the config file shown below as suggested by AI, but I get the same error everytime.
    Click image for larger version

Name:	image.png
Views:	30
Size:	216.7 KB
ID:	120631
    My co-worker has told me that they have used this same set up for other applications and it all works perfectly for them. Maybe it's because they are able to set TLS and SSL to false and directly from the UI of their apps?

    Does anyone know how I can fix this? Please let me know if you need more information from me.

    Thank you
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9523

    #2
    Hi,

    Maybe related:
    https://forum.espocrm.com/forum/inst...9-1-mail-issue
    https://forum.espocrm.com/forum/gene...0-after-update
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...