Skip to content

Feature request: SMTPUTF8 support (RFC6531) #1864

@andris9

Description

@andris9

I didn't find any mentions on supporting SMTPUTF8 extension. Haraka already supports 8BITMIME so SMTPUTF8 would be a great addition to this.

It is mostly needed to support Email Address Internationalization (EAI) email addresses where both user and domain part can contain non-latin characters. Without SMTPUTF8 it is only possible to use the A-label formatted IDN domains (xn--...) but no way to use non-latin characters in user part.

What needs to be changed to support SMTPUTF8:

  1. The server should add SMTPUTF8 as one of the supported extensions
S: 250-Macintosh.lan Hello Unknown [::1], Haraka is at your service.
S: 250-PIPELINING
S: 250-8BITMIME
S: 250 SMTPUTF8 <-- new keyword
  1. The server must switch to unicode mode if the client uses SMTPUTF8 keyword with MAIL FROM

Without SMTPUTF8 keyword:

C: MAIL FROM:<[email protected]>
S: 250 sender <[email protected]> OK
C: RCPT TO:<андрис@уайлддак.орг>
S: 552 Syntax error (8-bit characters not allowed)

With SMTPUTF8 keyword:

C: MAIL FROM:<[email protected]> SMTPUTF8
S: 250 Accepted
C: RCPT TO:<андрис@уайлддак.орг>
S: 250 recipient <андрис@уайлддак.орг> OK

If SMTPUTF8 keyword is used then UTF8 encoded addresses should be allowed to use with both MAIL FROM and RCPT TO commands.

I don't know much about Haraka internals, so I don't know if this would be something simple or difficult to implement. If it would be too hard to implement in the short term, then maybe you'd take it into the long term plans? I'm pretty sure that EAI addresses are the future.


The email address андрис@уайлддак.орг is a working address. I host it in my IMAP server Wild Duck. Currently I have a my own SMTP server instance running as MX but I would rather use Haraka for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions