"that domain isn't allowed to be relayed thru this MTA " : Problem and fix
843830Jun 27 2007 — edited Aug 9 2007I am using Java mail to send emails out at work through my web email account.
Sometimes it works fine, but after a while, it gives me the following error :
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
I waited for a few days, and tried one more time, it worked again for a few emails, then it failed again. I went into my Thunderbird where I had this web account set up so I can both send and receive emails, I tried to send out an email, it worked, then I used my Java email program to send email from work through this web account, it works again. It seems Thunderbird can fix the problem for me. Does any one know how I can fix it in Java so I don't have to start Thunderbird and send an email to fix the error ?
Frank