Java and Sendmail HELO requires domain address

Posted by ealgestorm on Server Fault See other posts from Server Fault or by ealgestorm
Published on 2011-07-18T07:16:18Z Indexed on 2013/10/19 15:58 UTC
Read the original article Hit count: 151

Filed under:
|
|
|

I am trying to set up emailing from a java web application hosted on a linux server (Cent OS) in apache.

Sendmail is working fine from the command line as root on localhost but when trying to send emails from the java web app (also on the same server from localhost) the following java exception is thrown.

501 5.0.0 HELO requires domain address

EDIT: I have read that some people have found this is due to an incorrect hosts entry currently the hosts file contains

127.0.0.1 Centos-VPS localhost.localdomain localhost

and i'm not sure what the Centos-VPS bit at the start is for but this is a clients hosted server so don't really want to break stuff

EDIT see the RFC is helpful ...

501 Syntax error in parameters or arguments

Now I know what the problem is! (note the sarcasm people.)

© Server Fault or respective owner

Related posts about linux

Related posts about centos