LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mailsent Issue (https://www.linuxquestions.org/questions/linux-newbie-8/mailsent-issue-4175474768/)

kirannec 08-26-2013 09:20 AM

Mailsent Issue
 
16:14:12 [ ERROR] Error Occurred ...
subject---> Ticket [758332]: New - 4 - TEST Email
to---> xyz@zyx.com
error ---> javax.mail.MessagingException: 501 5.0.0 HELO requires domain address

16:14:12 [ ERROR] Exception = javax.mail.MessagingException: 501 5.0.0 HELO requires domain address

javax.mail.MessagingException: 501 5.0.0 HELO requires domain address

at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:917)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:417)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Transport.send0(Transport.java:188)
at javax.mail.Transport.send(Transport.java:118)
at com.extraview.common.EVSendMail.sendWithoutAttachment(EVSendMail.java:313)
at com.extraview.common.EVSendMail.send(EVSendMail.java:281)
at com.extraview.util.BatchMailTask.send(BatchMailTask.java:1039)
at com.extraview.util.BatchMailTask.processOneFile(BatchMailTask.java:882)
at com.extraview.util.BatchMailTask.pollDirectory(BatchMailTask.java:565)
at com.extraview.util.BatchMailTask.run(BatchMailTask.java:1115)
at java.lang.Thread.run(Thread.java:595)

16:14:12 [ ERROR] Error 1 Occurred processing file 758332HtmlINTERNAL_USER1377526436793.html subject Ticket [758332]: New - 4 - TEST Email
16:14:12 [ ERROR] Renaming /opt/extraview-test/mailbox/758332HtmlINTERNAL_USER1377526436793.html to :/opt/extraview-test/mailbox/__758332HtmlINTERNAL_USER1377526436793.html
16:14:12 [ ERROR] Error Occurred ...

YankeePride13 08-26-2013 10:00 AM

Many mail servers require you to start an SMTP exchange like this :

Code:

helo example.com
Or they will not accept mail. You're likely starting the handshake like this:

Code:

helo
Find a way to add the domain to the start of the handshake. You can test this yourself using telnet to connect to the mail server on port 25.

TB0ne 08-27-2013 08:39 AM

Quote:

Originally Posted by kirannec (Post 5016265)
16:14:12 [ ERROR] Error Occurred ...
subject---> Ticket [758332]: New - 4 - TEST Email
to---> xyz@zyx.com
error ---> javax.mail.MessagingException: 501 5.0.0 HELO requires domain address

16:14:12 [ ERROR] Exception = javax.mail.MessagingException: 501 5.0.0 HELO requires domain address

javax.mail.MessagingException: 501 5.0.0 HELO requires domain address

at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:917)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:417)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Transport.send0(Transport.java:188)
at javax.mail.Transport.send(Transport.java:118)
at com.extraview.common.EVSendMail.sendWithoutAttachment(EVSendMail.java:313)
at com.extraview.common.EVSendMail.send(EVSendMail.java:281)
at com.extraview.util.BatchMailTask.send(BatchMailTask.java:1039)
at com.extraview.util.BatchMailTask.processOneFile(BatchMailTask.java:882)
at com.extraview.util.BatchMailTask.pollDirectory(BatchMailTask.java:565)
at com.extraview.util.BatchMailTask.run(BatchMailTask.java:1115)
at java.lang.Thread.run(Thread.java:595)

16:14:12 [ ERROR] Error 1 Occurred processing file 758332HtmlINTERNAL_USER1377526436793.html subject Ticket [758332]: New - 4 - TEST Email
16:14:12 [ ERROR] Renaming /opt/extraview-test/mailbox/758332HtmlINTERNAL_USER1377526436793.html to :/opt/extraview-test/mailbox/__758332HtmlINTERNAL_USER1377526436793.html
16:14:12 [ ERROR] Error Occurred ...

...and it would also help if you gave us ANY useful details. Things like version/distro of Linux, are you using sendmail or postfix, what program(s) are generating the emails, what the mail log files say, if you can send emails from the command-line or not, etc. All you've done is post an error message from some java program.


All times are GMT -5. The time now is 06:29 AM.