truemail-rb / truemail-rack

Truemail server. Lightweight rack based web API 🚀
https://truemail-rb.org/truemail-rack
MIT License
30 stars 9 forks source link

[QUESTION] SMTP-AUTH requested but missing secret phrase, message errors #66

Closed akka2 closed 2 years ago

akka2 commented 2 years ago

New issue checklist

Issue description

We received this error when we try to check email address:

Complete output when running truemail, including the stack trace and command used
{"date":"2021-12-21 16:43:15 +0100",

"email":"xxxxxx@gmail.com","

validation_type":"smtp",

"success":false,
"errors":{"smtp":"smtp error"},
"smtp_debug":[{"mail_host":"142.250.110.26","port_opened":true,
"connection":false,
"errors":{"connection":"SMTP-AUTH requested but missing secret phrase"}},

{"mail_host":"142.251.9.26","port_opened":true,
"connection":false,"errors":{"connection":"SMTP-AUTH requested but missing secret phrase"}},

{"mail_host":"142.250.150.26",
"port_opened":true,
"connection":false,
"errors":{"connection":"SMTP-AUTH requested but missing secret phrase"}},

{"mail_host":"74.125.200.27",
"port_opened":true,"connection":false,
"errors":{"connection":"SMTP-AUTH requested but missing secret phrase"}},

{"mail_host":"142.250.157.26",
"port_opened":true,
"connection":false,
"errors":{"connection":"SMTP-AUTH requested but missing secret phrase"}}],

"configuration":{"validation_type_by_domain":null,
"whitelist_validation":false,"whitelisted_domains":null,"blacklisted_domains":null,"blacklisted_mx_ip_addresses":null,"dns":null,"not_rfc_mx_lookup_flow":false,"smtp_fail_fast":false,"smtp_safe_check":false,"email_pattern":"default gem value","smtp_error_body_pattern":"default gem value"}}
[INSERT OUTPUT HERE]
bestwebua commented 2 years ago

Hi, @akka2! Thanks for your report. Looks like you have used not latest release. This bug have been fixed in 0.2.19, https://github.com/truemail-rb/truemail-rack/pull/64. Which version are you using?

Example from truemail-rack 0.2.19:

Screenshot 2021-12-21 at 9 56 15 PM
akka2 commented 2 years ago

Hi, @bestwebua I have the last version installed but still get the error message, Thanks for your help image

bestwebua commented 2 years ago

@akka2, my result from latest 0.2.19 version:

Screenshot 2021-12-23 at 6 08 55 PM Screenshot 2021-12-23 at 6 09 35 PM

Please provide output of these commands after execution in truemail server folder:

ruby -v
cat app/truemail_server/version.rb
akka2 commented 2 years ago

hi, thanks for your feedback here is the output, i truemail rack version is installed image

akka2 commented 2 years ago

image version of the server

bestwebua commented 2 years ago

@akka2 Stop the server, run bundle clean --force in truemail-rack folder, then bundle install. Which truemail version comes in log?

akka2 commented 2 years ago

image

bestwebua commented 2 years ago
cd /
kill $(ps -c | grep ruby | stdbuf -oL awk '{print $1}')
cd root/truemail-rack
bundle clean --force
bundle install
VERIFIER_EMAIL=your_email@example.com ACCESS_TOKENS=token rackup
akka2 commented 2 years ago

image sorry mate

bestwebua commented 2 years ago

Which truemail version comes in log? What about another port? VERIFIER_EMAIL=your_email@example.com ACCESS_TOKENS=token rackup -p 2526

akka2 commented 2 years ago

here is the version : image

akka2 commented 2 years ago

port 2526 : image

bestwebua commented 2 years ago

Ok, try to verify email through this server instance running on 2526 port

akka2 commented 2 years ago

how you do that ? change config.ru ?

bestwebua commented 2 years ago

Nope. Run server with rackup -p 2526 and send http request to it http localhost:9292 email==some_emain Authorization:token. We should make shure that current instance is serving.

akka2 commented 2 years ago

can I share my sever access with you ? my email akkaoualiatgmailcom

bestwebua commented 2 years ago

I have emailed you.

bestwebua commented 2 years ago

@akka2 It's rvm issue on your environment. In current config always uses previous version of truemail core.

akka2 commented 2 years ago

@bestwebua ok, need an update ?

bestwebua commented 2 years ago

@akka2 Update for what? P.S.: checkout your email with details.

bestwebua commented 2 years ago

I have added ability to track version of running truemail server. It should help to debug, 'what are happening?', in cases like yours.

akka2 commented 2 years ago

Cheers mate I appreciate your help