dawidd6 / action-send-mail

:gear: A GitHub Action to send an email to multiple recipients
MIT License
463 stars 190 forks source link

Certification Error while using TLS on port 587 and on port 25 #215

Open SID262000 opened 2 months ago

SID262000 commented 2 months ago

Team,

I'm getting the following error on usage of the emailing service on port 587

Error: 0098C782CB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

I'm also getting a second error on trying the emailing service on port 25

unable to get local issuer certificate

We don't support port 465 usage on our emailing server.

Can you please investigate this and recommend a solution? Thanks!

SID262000 commented 2 months ago

Tagging @dawidd6 for review and potential response.

silviogutierrez commented 2 months ago

Just tried this with postmarkapp.com, and I have the same issue.

dawidd6 commented 2 months ago

Did you try setting secure input?

Aetherinox commented 2 months ago

These are the settings that work for me

    # port 465
    server_port: 465
    secure: true
    ignore_cert: false

    # port 587
    server_port: 587
    secure: false

The question is though, if secure: false, is their any actual TLS / SSL going on in the background. Because the last thing I want to do is start sending emails without SSL.

Yes port 587 is preferred over 465 now, but SSL is a vital part.