Sending email fails due to 501 Syntax: HELO hostname error
Symptoms
The following error is logged in Stash logs:
2012-05-04 14:18:16,863 ERROR [FE-WatchChecker] fisheye.mail com.cenqua.fisheye.mail.Mailer-sendMessage - problem sending email
javax.mail.MessagingException: 501 Syntax: HELO hostname
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 com.cenqua.fisheye.mail.Mailer.send(Mailer.java:217)
at com.cenqua.fisheye.mail.Mailer.sendMessage(Mailer.java:193)
at com.cenqua.fisheye.web.DefaultWatchManager.sendWatchEmail(DefaultWatchManager.java:690)
at com.cenqua.fisheye.web.DefaultWatchManager.sendEmailForChangesets(DefaultWatchManager.java:611)
at com.cenqua.fisheye.web.DefaultWatchManager.access$400(DefaultWatchManager.java:63)
at com.cenqua.fisheye.web.DefaultWatchManager$WatchChecker.checkWatchesForRep(DefaultWatchManager.java:279)
at com.cenqua.fisheye.web.DefaultWatchManager$WatchChecker.checkWatchesForRep(DefaultWatchManager.java:211)
at com.cenqua.fisheye.web.DefaultWatchManager$WatchChecker.run(DefaultWatchManager.java:184)
at java.lang.Thread.run(Thread.java:662)
Cause
Server's hostname is not defined, so FishEye sends the server's IP address instead of the hostname.
Resolution
Edit /etc/hosts file adding an entry to convert your computer's IP to its hostname.
Last modified on Feb 23, 2016
Powered by Confluence and Scroll Viewport.