Title | 'Relaying Denied' Error while trying to send email |
Date Updated | 12/08/2005 |
Versions affected | JavaScheduler 2.5+, Automize 4.0+ |
OS affected | Not a bug |
Description | User receives the following error when trying
to send Email: javax.mail.SendFailedException: 550 5.7.1 <name@company.com>... Relaying denied Many smtp servers use some sort of protection against email spamming. This only allows trusted users or computers to send email via the server. |
Causes | Possible Causes: 1) The SMTP server does not allow relaying unless you are sending email from a trusted IP or use proper authentication. 2) Microsoft Exchange server: server is setup to block smtp relaying. 3) Some servers allow you to send email internally but not to external email addresses. 4) Some SMTP servers require the Email User to login and check their POP3 email atleast once on the given IP before they let that user send SMTP mail from that IP. Once the POP3 email is checked using a valid user/pwd, the computers IP is then automatically added to a safe list on the server. This is another way to prevent spamming. 5) Relaying denied is a common safety measure used by SMTP servers when a certain email address & its mail server are put on a blacklist for email relay spam violations. Many honest mail servers get put on this list because someone broke through and used their server to relay spam. There are various blacklists available and SMTP servers may subscribe to none, a few or many of these lists. Hence you may be able to send email to a blacklisted address through one SMTP server but not through another. |
Solution | Possible solutions: 1. Make sure with your email administrator that your email server is setup to allow smtp relaying from trusted local internal IP addresses. 2. Make sure that your computers IP address is on the list of trusted clients on the email server. 3. Some email servers may allow relaying only if you log in and check email atleast once from a given IP address. In this case, you can check your POP3 email first before sending SMTP email from a new computer. 4. Some email servers allow smtp relaying only if you log in and check email within the last 1 hour/day etc... In this case, you should use the pop3 authentication method to send email. 5. Some servers require you to authenticate before sending email. In this case, use the smtp or java authentication methods. 6. Microsoft Exchange: make sure that your exchange server is configured to allow smtp relaying either for trusted IP addreses, or for users that are authenticated. 7. Make sure that your email administrator has configured your ip address / account to send internal and external email. |
Output Log | Send Email failed for following error: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 <name@company.com>... Relaying denied |
Debug Log |
- |