mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-10 12:32:13 +00:00
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