Hello,
We have CentOS and WHM 11 installed on the server. Along with this we have apache-tomcat-5.5.25 .
Now one account on the server has JSP mailing script that is not working. The script is as follows:
====================================================
<%@ page import="sun.net.smtp.SmtpClient, java.io.*" %>
<%
String from="abc@domain.com";
String to="herman_white@yahoo.co.in";
try{
SmtpClient client = new SmtpClient("mail.domain.com");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: Sending email from JSP!");
message.println("This was sent from a JSP page!");
message.println();
message.println("Cool beans! :-)");
message.println();
message.println();
client.closeServer();
}
catch (IOException e){
System.out.println("ERROR SENDING EMAIL:"+e);
}
%>
=====================================================
Now when the mail is send in the mail logs i get the following error message:
56068 is currently not permitted to relay through this server. Perhaps you have not logged into the pop/imap server in the last 30 minutes or do not have SMTP Authentication turned on in your email client.
So please give us the solution for this issue.
Waiting for the replies.
its_joe



LinkBack URL
About LinkBacks
Reply With Quote




