Operating System - Linux
1752794 Members
5884 Online
108789 Solutions
New Discussion юеВ

javax.mail.MessagingException: 501

 
P-Dicky
Frequent Advisor

javax.mail.MessagingException: 501

Good Morning,

I have a script that when run as root it works with out issue but when run as any other users I get this

javax.mail.MessagingException: 501 Syntax error in parameters or arguments -

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:3)
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 sendemail.sendASSY.SendMessage(sendASSY.java:71)
at schedule.email862.main(email862.java:28)
Generating CIVIC Email

I have checked the rights and path varibles and all looks ok. Any other suggestions???

Thanks

2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: javax.mail.MessagingException: 501

Shalom,

Two ideas:

1) Bad application code is causing a crash and generating an smtp message.
2) Application code is trying to send an smtp(email) message and the systems server configuration is not permitting.

What are we running here?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
P-Dicky
Frequent Advisor

Re: javax.mail.MessagingException: 501

Hello

Sorry it is HP-UX 11.11 system. I kind of know what you saying but would it still work for root if that was the case?