3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
396 stars 401 forks source link

Error email #319

Closed CarmeloCampos closed 4 years ago

CarmeloCampos commented 5 years ago

When I do a "node main.js" in the "server" folder I get the following error:

SSL Proxy listening on port 443
mx resolved:
MX connection created:
recv tierravivaplanet.com>220-vmi33249.contabo.host ESMTP Exim 4.92 #2 Sat, 31 Aug 2019 16:33:22 -0500
recv tierravivaplanet.com>220-We do not authorize the use of this system to transport unsolicited,
recv tierravivaplanet.com>220 and/or bulk e-mail.
send tierravivaplanet.com>EHLO tierravivaplanet.com
recv tierravivaplanet.com>250-vmi33249.contabo.host Hello 149.212.239.35.bc.googleusercontent.com [35.239.212.149]
recv tierravivaplanet.com>250-SIZE 52428800
recv tierravivaplanet.com>250-8BITMIME
recv tierravivaplanet.com>250-PIPELINING
recv tierravivaplanet.com>250-STARTTLS
recv tierravivaplanet.com>250 HELP
send tierravivaplanet.com>MAIL FROM:<no_reply@tierravivaplanet.com>
recv tierravivaplanet.com>250 OK
send tierravivaplanet.com>RCPT TO:<soporte@tierravivaplanet.com>
recv tierravivaplanet.com>550 SMTP AUTH is required for message submission on port 587
SMTP responds error code 550
Error with your mail server: SMTP code:550 msg:550 SMTP AUTH is required for message submission on port 587

It should be noted that I edited the file ~/opentrade/server/constants.js With my emails that I want to use, And also the sendmail.js file with the port my hosting uses. It seems that the error lies in the lack of smtp authentication, but I can't find where to put it

ExchangeTime commented 5 years ago

open port 25?

CarmeloCampos commented 5 years ago

open port 25?

My server does not use 25 if not 587, so I changed it

ExchangeTime commented 5 years ago

well, recode the mail outputs then?

CarmeloCampos commented 5 years ago

I think I have to authenticate to use the SMTP, but I can't find where

ExchangeTime commented 5 years ago

@CarmeloCampos ..........

CarmeloCampos commented 5 years ago

:cry: tons k?

3s3s commented 5 years ago

smtp (email) protocol MUST working on port 25. If your hosting provider blocks the port 25 then you have only two alternatives:

  1. disable email notifications in constants.js
  2. change your hosting provider.
CarmeloCampos commented 5 years ago

change hosting to one with port 25 active, but still tell me that authentication is missing. I was checking the sendemail in node_module and there you can change the port, but I don't know where the smtp authentication is added

3s3s commented 4 years ago

DO NOT TRY change the port 25 to another. This is a meaningless and useless operation. Either you open port 25 or mail will not work. No options! Mail in OpenTrade is sent to user directly, not through relays. In this case, authorization is not required. If the error continues to appear - this is the bug of your hosting provider but not OpenTrade

CarmeloCampos commented 4 years ago

I communicated with my hosting and they cannot enable entry without smtp, how can I proceed? Isn't there a way to place the smtp?

ExchangeTime commented 4 years ago

Get a vps from vultr (ask them to open port) or VPSserver always got port 25 open

CarmeloCampos commented 4 years ago

@ExchangeTime But do they have email service already?

minblock commented 4 years ago

You cannot forward e-mail to a box like that. For SMTP to work properly, you need to relay that. And in order to do that you must have a relay point with Dovecot installed on it for authentication in sasl and dkim so that it could be accepted by the final destination's mail server. You could just open up port 25 on your email server however, it must be setup correctly to avoid having people exploiting for spamming purposes. You would be best off with a VPN tunnel to your SMTP relay then forward on to your SecuredEmail server for distribution. It will need to have a user account with a mailbox or else your e-mails from soporte@tierravivaplanet.com will be bounced. Do you have a working email box that acc3pts emails at that address?

CarmeloCampos commented 4 years ago

You cannot forward e-mail to a box like that. For SMTP to work properly, you need to relay that. And in order to do that you must have a relay point with Dovecot installed on it for authentication in sasl and dkim so that it could be accepted by the final destination's mail server. You could just open up port 25 on your email server however, it must be setup correctly to avoid having people exploiting for spamming purposes. You would be best off with a VPN tunnel to your SMTP relay then forward on to your SecuredEmail server for distribution. It will need to have a user account with a mailbox or else your e-mails from soporte@tierravivaplanet.com will be bounced. Do you have a working email box that acc3pts emails at that address?

@minblock Yes, I have a mailbox in that direction