I got this error for an organization when sending out the CyHy reports this week:
cyhy-mailer-mailer-1 | botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the SendRawEmail operation: Domain contains illegal character
The issue turned out to be a duplicated at sign (@) in the distribution email address. A simple regex would prevent errors like this from happening in the future.
💡 Summary
We should verify email addresses in
cyhy-simple
andcyhy-import
, or possible just when the request document is saved in the database.Motivation and context
I got this error for an organization when sending out the CyHy reports this week:
The issue turned out to be a duplicated at sign (
@
) in the distribution email address. A simple regex would prevent errors like this from happening in the future.