Monday, March 9, 2009

javax.mail.MessagingException: 501 Syntax: HELO hostname

If your java mailer returns

javax.mail.MessagingException: 501 Syntax: HELO hostname

upon sending an email, most probably you have to set a hostname to the machine running java (not the SMTP server per se)

Run "hostname javaservername " and / or edit /etc/sysconfig/network to note the server name.

No comments: