Symptom
- Application errors occur during inbound monitoring in SAP Service Cloud Version 2.
- Attempts to reprocess messages fail.
- Error logged: "javax.mail.internet.AddressException: Domain contains illegal character at javax.mail.internet.InternetAddress.checkAddress".
- Emails from the same domain process correctly, but emails from specific senders fail.
Environment
- SAP Service Cloud Version 2 1.0
- SAP Sales Cloud Version 2 1.0
Reproducing the Issue
- Navigate to Settings -> Inbound Monitoring.
- Search for affected email.
- Try reprocessing
Cause
- The email's "To" header contains addresses that do not conform to RFC 5322 – Internet Message Format standards.
- Specifically, the email addresses are quoted, which is not valid as per the specification.
- This invalid format prevents the MIME from being processed, resulting in the error.
Resolution
- Validate the "To" header in affected emails
- Inspect the Message MIME and verify the To header for quoted or non-conforming email formats.
- Inform the sender to correct the email format
- Clearly explain that addresses in the To header must follow RFC 5322 standards.
- Quoting the address incorrectly (e.g., "'John, Doe'" <'John.doe@test.com'>) is invalid and leads to processing failures.
- Reprocessing these messages without format correction will continue to fail.
Example of valid formats
- John.Doe@test.com
- "John Doe" <John.Doe@test.com>
Example of invalid formats
- "'John, Doe'" <'John.Doe@test.com'> (extra quotes and improper use of angle brackets)
- 'John.Doe@test.com' (quoted address)
- <John.Doe@test.com> (missing display name or improperly placed angle brackets)
Key rules from RFC 5322
- The email address itself must not be enclosed in quotes.
- Angle brackets (< >) should only enclose a valid email address when accompanied by a display name.
- If a display name contains a comma or special character, it must be quoted—but the email address inside angle brackets must not be quoted.
Keywords
application error, inbound monitoring, reprocessing failure, sap service cloud version 2, email processing error, RFC 5322, invalid email format, MIME error, javax.mail.internet.AddressException, transmission status failure, email header validation, Inbound Monitoring, Reprocess Failure, RFC 5322, AddressException, MIME Parsing Error, Email Header Format , KBA , CEC-CRM-EML , Emails for SAP Sales/Service Cloud , Problem
Product
SAP Service Cloud Version 2 all versions
SAP Knowledge Base Article - Public