Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8683599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:05:18+00:00 2026-06-12T22:05:18+00:00

I am trying to connect to Mercury mail server with a java application and

  • 0

I am trying to connect to Mercury mail server with a java application and I am using JavaMail api. The connection is not successful and I’m getting this error in the log:

EHLO x.x.x.x
554 Invalid HELO format

Which means that it connects to the server but the helo format is not something that sever likes. I’ve tired to debug it and I got to this code in JavaMail “SMTPTransport” class which says:

serverOutput.write(cmdBytes);
serverOutput.write(CRLF);
serverOutput.flush();

and according to code:
private static final byte[] CRLF = { (byte)’\r’, (byte)’\n’ };
which seems consistent with RFC 821

I know that on windows \n has different meaning but I am not sure if this really is the root of problem? If it not then what can cause this?
I checked mail server with mail client and it works fine and I checked the code with James mails server and it also works fine!

JavaMail API version is: 1.4.5 (latest release)
Mercury/32 : 4.7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:05:19+00:00Added an answer on June 12, 2026 at 10:05 pm

    I did a Google search on 554 Invalid HELO format and got a ton of hits about your specific Mercury problem. It’s a bug.

    http://community.pmail.com/forums/thread/4136.aspx

    http://www.mantisbt.org/bugs/view.php?id=9645

    http://ellislab.com/codeigniter/forums/viewthread/153130/

    etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying to connect with sql server 2008 using java connection string but
I am trying to connect to a MySQL Server using JDBC tool in java
I'am trying to connect to a remote server over ssh2 using the lib ch.ethz.ssh2.Connection
I am trying to connect to my gmail account using com.sun.mail ..... Mail api.
I'm trying to connect to a FTP using Apaches FTPSClient but I keep getting
Trying to connect to a SQL Server 2005 instance remotely but getting the following
When trying to connect to a server, my app does not have a very
I'm trying to connect to a remote PostgreSql database using powershell. This is my
I'm trying to connect to https url - https://rtpubcommission.api.cj.com/wsdl/version2/realtimeCommissionServiceV2.wsdl But getting the errors (listed
I am trying to connect to an smtp server that requires authentication. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.