claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.35k stars 92 forks source link

Email failure with mailgun provider (openssl error) #34

Closed bagage closed 4 years ago

bagage commented 4 years ago

Following #29, the mail error is now properly handled:

Error sending email. Please check your configuration 139800907165000:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: Error: 139800907165000:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

However I'm using mailgun provider which works great for everything but epicgames-freegames. I'm not sure what's happening, you can replicate the issue using the following credentials:

    "smtpHost": "smtp.mailgun.org",
    "smtpPort": 587,
    "emailSenderAddress": "test-epicfreegames@sandbox78345d8086ff4c639fa14ff539661d8c.mailgun.org",
    "emailSenderName": "Epic Games Captchas",
    "secure": true,
    "auth": {
      "user": "test-epicfreegames@sandbox78345d8086ff4c639fa14ff539661d8c.mailgun.org",
      "pass": "cf4c4c65ccdfa2cabc6fbae1cf51b3b5-0f472795-86d7bb7d"
    }
claabs commented 4 years ago

Set secure to false. Generally, it's only true when using port 465.

bagage commented 4 years ago

Ohh, my bad! Since it worked for gmail (same port) I though it should always be set to secure.

Tested and indeed it works as intended. Thanks a lot for the quick response @claabs :).