Emial notification: Reason: javax.mail.internet.AddressException: Local address contains illegal character in string

Dear comunity,

I configure the email notification but i get
Reason: javax.mail.internet.AddressException: Local address contains illegal character in string
Local address contains illegal character in string ``G:\My Drive\log\iiq_email_notification.log’’ at sailpoint.server.InternalContext$EmailSender.send(InternalContext.java:1103)

Redirect to email means,

Instead of sending email to the actual user, SailPoint will send email to the email address you specify in Redirection Email Address. You should give valid email address not a file location, that is why you are facing this error.

For your testing, you need to select Redirect to File and then give the file location.

The field ‘Redirection Email Address’ should contain a valid email-address and not a file location.

So either switch to ‘Redirect to File’ (as Krishna stated) or provide an actual email-address.

Some of our clients prefer using actual email sent to a shared mailbox (so no need to log on to the IIQ Server on OS level) and other like to use the Redirect to File option.

– Remold

1 Like

Still getting the error, I update to “Redirect file”


image

  1. Make sure that file path is correct, you need to use forward slash (/) in the path.
  2. Whatever the user you are testing, make sire that user has email address.

I did it, slash for and change in global setting the email to the identity


email gloabl configuration
image

still the error

@fugitiva
Default from Address doesn’t matter, you can provide a mailbox and your email or in the log file you will see the from Address as this one.

Also when you select redirect to file, the path should be a valid path in the IIQ server.

Anyhow, In your case from where are you triggering the email notification, is it from custom code or rule using API or are you testing any OOTB Email notification at request level?

It seems like you are using a location that is mapped from Google Drive Desktop Application. IIQ might not be able to access this location due to access rights. Try with a location that is a real folder on your computer

1 Like

No custom, noghing its default one

Ok. Letcmy try in C and test it again

1 Like

How about the file extension? Does the file in that location have .log extension?

yes, i change the location but still the same exception

C:/Users/Myuser/Documents/iiq_email_notification.log


image

This is a different error: a to address was not specified

So the file location issue is solved and you are now on a next issue.

– Remold

@fugitiva
Where exactly in the flow, this notification is being triggered? do you have more details. It is no longer a file location related issue.

This is the line (from decompiled file) throwing the EmailException

private Message createMessageWithHeader(EmailTemplate src, Session session, String domain) 

and it happens when the method cannot find a “from” address or “to” address in the EmailTemplate “src”

Can you please share more details on the context where you are getting this error?

Have you submitted any request to test email redirection ?

If yes, then there will be email notifications for requestor and requestee depends on your notification settings in LCM Provisioning workflow (You can find that in Setup → Business Process).

I guess you submitted a request using spadmin user which doesn’t have any email, so the error.

Can you check these points.

And BTW, this is a common error I see and I ignore as I know that spadmin user doesn’t have email anyway.

where exacltty?

Its the configuration email, and I get this error when im edit identity lastname and see the provisioning flow then that error

ok, should open another thread? and close this?

Make any other user who has email address as admin (see below) and perform thesame request.