You must login to view /lordwelch/chasquid/src/commit/8e9ea901e9ec125d7de24c97892cade1f0723e54/docker/dovecot.conf.
The GitHub option should be usable for most people, it only links via username.

Files
chasquid/cmd/mda-lmtp/test_puny_utf8.cmy
Alberto Bertogli 8f1f943fca mda-lmtp: Add -to_puny, to punycode-encode addresses
Some LMTP servers (like dovecot) can't handle UTF8 addresses in the LMTP
commands. This can be problematic if we want to use them with UTF8
domains or usernames, which are well supported by chasquid.

To help workaround this issue, this patch adds a new -to_puny flag for
mda-lmtp, that makes it encode `from` and `recipient` in punycode.

That way, the server will get punycode-encoded (ASCII) strings in the
LTMP commands.

This can be particularly convenient when the recipients are ASCII
(because they're under the mail server control), but `from` may not be
(because it comes from the network).
2021-06-25 12:15:42 +01:00

34 lines
453 B
Plaintext

nc unix_listen .test-sock
mda |= ./mda-lmtp --addr=.test-sock --addr_network=unix \
-to_puny -f fröm -d þo < test-email
nc -> 220 Hola desde expect
nc <~ LHLO .*
nc -> 250-Bienvenido!
nc -> 250 Contame...
nc <- MAIL FROM:<xn--frm-tna>
nc -> 250 Aja
nc <- RCPT TO:<xn--o-hha>
nc -> 250 Aja
nc <- DATA
nc -> 354 Dale
nc <- Subject: test
nc <-
nc <- This is a test.
nc <- .
nc -> 250 Recibido
nc <- QUIT
nc -> 221 Chauchas
mda wait 0