Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: phranque
We developed our application with JSP, using Tomcat as our application server. All of it runs great, except for the email segment.
Here is how it works: the client needs to register with us first. Once he inserted his desired user id and password, our application is supposed to send him an email. On the screen, it informs us that it did. Except we never get it! :-(
If we run our tests on another of our servers (a test server) its ok. Once we change it to the server where we want it to run, it fails to work. Of course we have changed the smtp to the right one and all... Would it have something to do with POP3 or SMTP or WHAT?
I am totally at a loss here. I think I am confronted with a problem that is so obvious, it could hit me on the head and I probably would'nt feel it...
Can anybody here help us with this?
Well we do get the error messages that "mail cannot be relayed" or something to that effect.
We don't use any mail program specifically, as we pretty much created all ourselves. You are right Dave when you are mentioning both servers. There does seem to be a "disconnect" in there somewhere.
We are both pulling our hair out on that one. Its the only thing left to solve before we can successfully deploy our application.
there are two options if the live server is your own allow relaying for the domain which is sending the mail usually by IP address.
if the software is clever enough then just use Auth.
error messages that "mail cannot be relayed" or something to that effect.
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 554 Relay access denied
If anybody can help us on this, I will owe you a beer at the next pub in London :-)
change it to:
if Fw has been defined as:
(Redhat default configuration)
you may leave sendmail.cf unchange but add yourdomain.com into /etc/mail/local-host-names.
And, don't forget to restart sendmail.
It basically says that error 554 is originating from the smtp mailserver for security reasons and "usually" the cause is the From field of an email is wrong (not part of the allowed domain).
hope that helps
Chatain, just to make certain I understand you correctly here: basically, what your saying is I should add that line of code in sendmail and re-start it? That would clear my problem?
Currently, we are hosting a fairly large number of web sites on that particular server. None are having any mail problems. Then again, none are using (or trying to do) what we are using and doing...
I will ask my Linux expert here to do that and hopefully it will clear my problem and I'l be able to repay you with a few beers at the pub.
:-) I will let you know how it goes!