Email Configuration


I’m using Cuba Platform 6.8 and I’m trying to send e-mails using SMTP server from Hostgator.

I tried the following params = = = 26 = true = = ********* = false = false

Then I tested using JMX Console, but no success.

Failed to close server connection after message sending; nested exception is

javax.mail.MessagingException: Exception reading response;
  nested exception is: Read timed out

If I do = false, I get:

Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid HELO name (See RFC2821

I also tried with ports 25 and 587, with different combinations of the parameters: smtpAuthRequired, smtpStarttlsEnable and smtpSslEnabled.

Tried also with another SMTP server but got the same results

Any suggestion?

Thank you


Hello @claudio.montenegro,

Try to use mail.smtp.localhost parameter with your hostname (probably FQDN) as a value (documentation). Found this at stackoverflow.

Hello Ivan,

I did a small java App to test the connection with the SMTP server. The app worked fine and debugging the connection I got:

EHLO clmc Hello clmc []
250-SIZE 52428800

Following your suggestion I set the parameter mail.smtp.localhost, to do so I edited the file tomcat\bin\ and added the following line:

CATALINA_OPTS="$CATALINA_OPTS -Dmail.smtp.localhost=clmc"

But I still got the “Access denied - Invalid HELO name”.

I also changed the “clmc” to the IP, but with the same result.

Thank you,


Hello Claudio,

I did not face this problem, so I just can suggest to try send FQDN instead of hostname, for instance: instead of clmc.

Anyway, the best way is debugging it using IDE while sending email from JMX :slight_smile: