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:	9
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:	6
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:	6
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
    • 9279

    #2
    Hi,

    Maybe related:
    Since updating 9.1 outbound mail functionality broke for me. Found in a another topic mail component was changed to symfony. Had a bit of a time getting that to work with my (local) SMTP gateway so figured I'd supply some freedback. First, the option of turning off encryption does not seem to work, even with it set to the

    After updating to version 9.1.0, there's an issue with sending emails. Log: [2025-05-08 10:56:58] ERROR: (0) Email sending error: Connection could not be established with host "ssl://mail.itys.ru:465": stream_socket_client(): SSL opera> [2025-05-08 10:56:58] WARNING: Email sending:unknownError; 0 Has anyone
    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...