Greg,
I found something about this here:
http://java.sun.com/products/javamail/FAQ.html#helo
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.
It looks like the Java mail libraries are having a problem getting the name of
your host. I attached a file that makes the
InetAdress.getLocalHost().getHostname() command mentioned above so that you can
check what hostname is retrieved by this call. You can use it with these
commands: javac HostnameTest.java
java HostnameTest
and then take note of what prints out. Your system administrator may need to
adjust the settings of the name resolver on your server.
Note that DSpace 1.6+ has a configuration parameter, mail.extraproperties, that
you could use to work around this:
mail.extraproperties = mail.smtp.localhost=[yourhostname]
replacing [yourhostname] with the name of your host (no brackets).
Then you would restart Tomcat and see if everything works.
--keith
-----
Hello,
RHEL 5
Dspace 1.5
postgresql
I get the following error message when trying to register a user. This message
is also very similar to what I get when clicking the Feedback link. Can anyone
point me in the right direction? I’ve looked into changing the smtp
configuration in dspace.cfg but nothing I do seems to make a difference. Do I
need to restart the server after making changes to dspace.cfg? or just restart
Tomcat?
Thanks for any help.
2010-06-15 17:14:50,280 INFO org.dspace.app.webui.servlet.RegisterServlet @
anonymous:session_id=5ABDD79E63C8CF55C8A2225AD7D09F74:ip_addr=216.183.185.5$
javax.mail.MessagingException: 501 5.0.0 HELO requires domain address
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1363)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:838)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:375)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at org.dspace.core.Email.send(Email.java:362)
at org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:296)
at org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:256)
at
org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:101)
at
org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:287)
at
org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:202)
at
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147)
at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Greg This email message and any files transmitted with it are intended only for
the use of the individual or entity to which it is addressed and may contain
information that is privileged, confidential, and exempt from disclosure under
applicable law.� Any use, distribution, copying or disclosure by anyone other
than the intended individual or entity is prohibited without prior approval.�
If you have received this information in error, please notify the sender
immediately.
import java.io.IOException;
import java.net.InetAddress;
public class HostnameTest
{
public static void main(String [] args)
{
try {
InetAddress ia = InetAddress.getLocalHost();
String hostname = ia.getHostName();
System.out.println(hostname);
} catch (IOException e)
{
System.out.println("Couldn't find address: " + e);
}
}
}
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech