On Febuary 12th, answers.atlassian.com will be undergoing maintenance from 02:00 UTC until 03:30 UTC. During this time, answers.atlassian.com may be unavailable.
I configured the server and get this exception when sending mails:
HELO usually requires fully qualified domain name. In this case, most probably the source machine (your confluence host) does not have set a fully qualified name; set this and try again.
Excerpt from http://www.oracle.com/technetwork/java/faq-135477.html :
Q: I get "MessagingException: 501 HELO requires domain address" when trying to send a message.
A: The SMTP provider uses the results of
InetAddress.getLocalHost().getHostName() in the SMTP HELO command. If that call fails to return any data, no name is sent in the HELO command. Check your JDK and name server configuration to ensure that that call returns the correct data. You may also set the "mail.smtp.localhost" property to the name you want to use for the HELO command.
Where do I have to set the fully qualified name?
Where is Confluence getting this value from?
Please, could you tell me step by step how to configure that?
Our smtp server does not verify the host name machine. Hostname is ip-192-168-X-XX, but smtp does not verify it. We tested it sending whatever and it does not give any error. It only gives error when hostname goes empty.
Can it be sending it empty? If sending ip-192-168-X-XX, it should not fail.
Is there any way I can know what is sending?
Do this test:
Compile the folowing Cucu.java:
If this prints empty host name, this is your problem.
Great, that was the problem and now it is solved.
I appreciate a lot all your help!!
If configuring via the UI is not working you can configure a JNDI mail session and use that instead. Follow the instructions for GMail at http://confluence.atlassian.com/display/CONF35/How+do+I+configure+Confluence+to+use+GMail+as+the+mail+server and subsitute the relevant values for your mail server.
Hope that helps,
I think the key problem is:
Caused by: javax.mail.MessagingException: 501 Command
requires an argument
I configured the server from the "site administration", with the option "server configuration".
I fill the fields:
When I test it, the body of the message is:
This is a test message from Confluence.
Server: SMTP Server
Host User Name: null (because we don't need user name)
When sending, it keeps thinking and at least it says the error that I posted before in the log.
What am I doing wrong?
Is there anywhere else where I can configure server? Any property file, or something?
Thanks for your help!