SMTP Transfer blocked because of localhost status (HELO 127.0.0.1)

This one is over my head.

Objective - Send email from webpage hosted on DO through SMTP server at Hostgator.

Status - It works only for emails going to another email account hosted by HG. Sending an email to gmail etc is blocked.

Request - How do I remove the HELO - 127.0.0.1 as discussed by the HG support team:

j.keyclusive.us is hosted with Digital Ocean and the mail HELO for the emails are setup to use 127.0.0.1 due to which the emails are being blocked. So, you would need to reach out to your hosting provider and have them update the mail helo to use the server hostname instead of 127.0.0.1 which should fix the issue with your emails. Please note that the HELO 127.0.0.1 is not allowed on our Shared servers.

Here is a log of email that you can provide to your host so that they could review it and fix the issue:
2023-07-12 00:58:31 1qJSrv-003Fyq-Ax <= j@keyclusive.us H=keyclusive.us ([127.0.0.1]) […85.92]:36628 I=[…247.151]:465 P=esmtpsa X=TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no A=dovecot_plain:j@keyclusive.us S=901 id=c1279fa6-80dd-884f-f4d5-f08998eb6b1f@keyclusive.us T=“HGtest wanted you to see this boat.” from <j@keyclusive.us> for hellofromhg@gmail.com
2023-07-12 00:58:31 SMTP connection from keyclusive.us ([127.0.0.1]) […85.92]:36628 I=[…247.151]:465 lost D=0s
2023-07-12 00:58:31 1qJSrv-003Fyq-Ax => /dev/null <hellofromhg@gmail.com> F=<j@keyclusive.us> R=fightspamHG T=bypassed S=0
2023-07-12 00:58:31 H=keyclusive.us ([127.0.0.1]) […207.85.92]:36630 I=[…247.151]:465 Warning: got HELO: [127.0.0.1]

Thanks

That’s a very interesting detail, and probably you’re the first person to encounter this issue.

This would require the Wappler team to modify the Send Mail action to include your server’s IP address, which also introduces another challenge: how to get the server’s IP address?

If the NodeJS is running inside a (Docker) container, the IP address is 127.0.0.1. If it’s not running inside a container, things possibly get a little bit easier.

Regardless, the easiest fix right now, is to use another SMTP provider. Alternatively, you could wait for the Wappler team to release a fix, but the wait time is unknown…

I’ve moved your topic to bug reports

Thanks Apple - I’ve got Postmark as a backup working - This method saves the monthly SMTP fee. Really appreciate the quick response.