cancel
Showing results for 
Search instead for 
Did you mean: 

SAP J2EE engine for configuring Java mail Service.

Former Member
0 Kudos

Hi

I am experiencing following exception when trying to use JAVA mail API.

javax.mail.SendFailedException: Invalid Addresses;

nested exception is:

javax.mail.SendFailedException: 554 <email@ddress>: Recipient address rejected:

Relay access denied

email address above is valid..

I have to use SAP J2EE engine for configuring Java mail Service.

But is does not hav any such access permissions to check....!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Relay access denied

To send mails from SAP system through the mail server which you have configured, SAP server should be permitted to relay through the mailserver. Then only you will be able to send mail to external email address. Otherwise, you will get the above message.

You must contact the mail server administrator and ask him to add the ip of SAP server into the allowed relay list.

If you are using MS exchange server as your mail server and if you have administrative access to the Exchange box, you can do it yourself by following the below steps:

1.Verify that your Exchange computer is not an open mail relay. To do this, follow these steps:

a. Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.

b. In Exchange System Manager, expand the following object:

Servers\Your_Exchange_Server_Name\Protocols\SMTP

c. Right-click the virtual SMTP server where you want to prevent mail relay, and then click Properties.

d. Click the Access tab, and then click Relay.

e. By default, open relay is blocked. The default settings are as follows:

u2022 The Only the list below check box is selected.

u2022 The Allow all computers which successfully authenticate to relay, regardless of the list above check box is selected.

f. If you must permit a single computer, a group of computers, or a domain to relay through the server, click Add. In the Computer dialog box, click the appropriate selection for the computers you want to relay through the server. Then, type the required information.

Note Enabling access by IP address or by domain name is helpful for users who do not authenticate with the Exchange computer.

g. In the Relay Restrictions dialog box, click OK.

h. Click Apply, and then click OK in the Default SMTP Virtual Server Properties dialog box.

hope this helps you out...

Cheers,

Jazz

Answers (0)