Alisson Vieira
Alisson Vieira

Reputation: 41

Problem with Apache James

I'm trying send email using Apache James, as server, for external account and I'm receiving the following exception :

Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Requested action not taken: relaying denied

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686)
... 6 more

Somebody please help me to resolve the issue

Thanks in advance

Alisson

Upvotes: 0

Views: 2975

Answers (2)

Mahadev
Mahadev

Reputation: 31

You can not send an email to external mail addresses, say for instance your gmail id, unless and until you have a static IP. The SMTP of the server has the configuration to stop emails from dynamic IPs.

Upvotes: 1

Isaac Truett
Isaac Truett

Reputation: 8884

Sounds like you didn't authenticate to the SMTP server. Show some code if you need more help.

Upvotes: 1

Related Questions