SMTP problem with Gmail (wrong HELO)

1,119 views
Skip to first unread message

Blah

unread,
Mar 9, 2019, 2:13:14 PM3/9/19
to ASTPP
When trying to send an email with Google ASTPP is sending a wrong HELO and Gmail is rejecting it:

<pre>hello: 501-5.5.4 HELO/EHLO argument "http://billing.mydomain.com:port/" invalid,

501-5.5.4 closing connection.

501 5.5.4  https://support.google.com/mail/?p=helo x10sm1011457wrs.56 - gsmtp

</pre>The following SMTP error was encountered: 501-5.5.4 HELO/EHLO argument "http://billing.mydomain.com:port/" invalid,

501-5.5.4 closing connection.



I have noticed ASTPP is sending the value base_url in /var/lib/astpp/astpp-config.conf


I am connecting to gmail using ssl://smtp.google.com and port 465


Thank you

Devang Nathwani

unread,
Mar 9, 2019, 10:43:26 PM3/9/19
to as...@googlegroups.com
Hello,
Is this any particular template?
How are sending email from ASTPP?

--
=====================================================================
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/fb44feae-30c0-4646-a85d-7cf10d392e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Thanks,
Devang Nathwani

Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

Blah

unread,
Mar 10, 2019, 7:54:14 AM3/10/19
to ASTPP
Hello Devang

When going to Accounts -> Email mass any template. 

Where do I change the HELO SMTP command that is sent when presenting a new SMTP connection ?

Matias R

unread,
Mar 11, 2019, 11:37:18 AM3/11/19
to ASTPP
I added the '\r' to  /var/www/html/astpp/system/libraries:

        var $crlf = "\r\n"; // The RFC 2045 compliant CRLF for quoted-printable is "\r\n".  


And now I have received the following error:


Date : March 11, 2019, 3:32 pm

 From :nor...@mydomain.com

 To : bl...@mydomain.com

 Subject :Account credited Successfully 

 Attachment :

Error : 

<pre>hello: 250-smtp.gmail.com at your service, [46.101.106.114]

250-SIZE 35882577

250-8BITMIME

250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-CHUNKING

250 SMTPUTF8

</pre>Failed to authenticate password. Error: 535-5.7.8 Username and Password not accepted. Learn more at

535 5.7.8  https://support.google.com/mail/?p=BadCredentials t202sm29574687wmt.0 - gsmtp

<br /><pre>from: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/?p=WantAuthError t202sm29574687wmt.0 - gsmtp

</pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/?p=WantAuthError t202sm29574687wmt.0 - gsmtp

<br /><pre>to: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/?p=WantAuthError t202sm29574687wmt.0 - gsmtp

</pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/?p=WantAuthError t202sm29574687wmt.0 - gsmtp

<br /><pre>data: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/?p=WantAuthError t202sm29574687wmt.0 - gsmtp

</pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/?p=WantAuthError t202sm29574687wmt.0 - gsmtp

<br />502 5.5.1 Unrecognized command. t202sm29574687wmt.0 - gsmtp

<br />The following SMTP error was encountered: 502 5.5.1 Unrecognized command. t202sm29574687wmt.0 - gsmtp

<br />Unable to send email using PHP SMTP.  Your server might not be configured to send mail using this method.<br />



In my Gmail account I received the following attachment. Also "Allow less secure app" is not available in my Gsuite account.


I am using ssl://smtp.gmail.com and port 465


Any advice? 





For more options, visit https://groups.google.com/d/optout.


--
Matias
Screen Shot 2019-03-11 at 12.34.54.png

Kristaps Dravnieks

unread,
Mar 11, 2019, 11:42:25 AM3/11/19
to as...@googlegroups.com
If you use gsuite, authorize your astpp server ip in admin panel for smtp-relay, that way you don't need username or password then. 

Matias Rollan

unread,
Mar 11, 2019, 5:36:28 PM3/11/19
to as...@googlegroups.com
Thank you. I authorized the IP address as SMTP relay but ASTPP requires me to add a username/password and does not let me leave it blank.

When using a correct username/password I get the following: 

<pre>hello: 250-smtp.gmail.com at your service, [M.IP.AD.RESS]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
</pre>Failed to authenticate password. Error: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials x22sm14988wmc.19 - gsmtp
<br /><pre>from: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError x22sm14988wmc.19 - gsmtp
</pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError x22sm14988wmc.19 - gsmtp
<br /><pre>to: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError x22sm14988wmc.19 - gsmtp
</pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError x22sm14988wmc.19 - gsmtp
<br /><pre>data: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError x22sm14988wmc.19 - gsmtp
</pre>The following SMTP error was encountered: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError x22sm14988wmc.19 - gsmtp
<br />502 5.5.1 Unrecognized command. x22sm14988wmc.19 - gsmtp
<br />The following SMTP error was encountered: 502 5.5.1 Unrecognized command. x22sm14988wmc.19 - gsmtp
<br />Unable to send email using PHP SMTP.  Your server might not be configured to send mail using this method.<br />

Kavin Chauhan

unread,
Mar 12, 2019, 12:42:49 AM3/12/19
to ASTPP
Hello Matias,
Please enable less secure app access for your gmail account.


For more options, visit https://groups.google.com/d/optout.


--
Thanks,
Kavin Chauhan,
Sr. Network and VOIP Engineer
Inextrix Technologies Pvt. Ltd.
+91 79 29700670

Matias Rollan

unread,
Mar 12, 2019, 2:20:00 PM3/12/19
to as...@googlegroups.com
Hi Kavin

It is not available anymore that option in GSuite. That’s why I am unable to set it up.

Any idea? There must be lots of users using Gsuite as SMTP relay with ASTPP….

Kavin Chauhan

unread,
Mar 13, 2019, 12:12:55 AM3/13/19
to ASTPP
Okay.
I think you have to add IP of your server in Gsuite somewhere Or you have to configure proper relay. Please refer below article.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages