Files
kumomta/crates/message
Wez Furlong 6efff15983 rfc5321 parser: allow utf8 in mailboxes
This is a step towards supporting SMTPUTF8.

This commit allows MAIL FROM and RCPT TO to contain UTF8.

UTF8 in the domain portion is converted to an A-label form
via the IDNA crate, raising an error if it is invalid.

UTF8 in the local part is unchanged.

The SMTP server now explicitly checks to see if the provided
MAIL FROM or RCPT TO is non-ascii, and rejects it; we won't
try to relay UTF8 local parts as a result of this change,
but will now accept UTF8 domain parts and relay, because we
rewrite those via IDNA.

refs: https://github.com/KumoCorp/kumomta/issues/327
2025-01-11 06:53:43 -07:00
..