Mail Server with javax.mail and CentOS
问题 I have a Java Program that was installed on an old Ubuntu machine and sent mail using javax.mail. However, that machine went down and I am now running the same Java app in a new CentOS machine. However, I get an error "MessagingException: 501 Syntax: HELO hostname" when trying to send an email using mail.smtp.host = 127.0.0.1. My guess is that the mailserver is not yet activated in this CentOS. How would I go about configuring a mail server that javax.mail can use? Thank you 回答1: Your machine