Is there any way that this email will ever function? łōręmıpśum@łōręmıpśum.com
This is not a totally frivolous pursuit. We have Polish users who have input non-ascii emails into our app.
The gmail validator flags it as invalid, but maybe it's just such a rare case that they haven't allowed for it. The punycode for "łōręmıpśum.com" is "xn--rmpum-j0a3o6e4dtg.com" and info@xn--rmpum-j0a3o6e4dtg.com
seems to work fine. The user-part is giving me a headache though.
I had assumed I could utf8+percent encode it as I would in a url (which comes out to "%C5%82%C5%8Dr%C4%99m%C4%B1p%C5%9Bum"), but the SMTP servers return my mail with an error:
The mail system
<%C5%82%C5%8Dr%C4%99m%C4%B1p%C5%9Bum@xn--rmpum-j0a3o6e4dtg.com>: host
eforward3.registrar-servers.com[38.101.213.199] said: 554 5.7.1
<%C5%82%C5%8Dr%C4%99m%C4%B1p%C5%9Bum@xn--rmpum-j0a3o6e4dtg.com>: Relay
access denied (in reply to RCPT TO command)
Final-Recipient: rfc822; %C5%82%C5%8Dr%C4%99m%C4%B1p%C5%9Bum@xn--rmpum-j0a3o6e4dtg.com
Original-Recipient: rfc822;%C5%82%C5%8Dr%C4%99m%C4%B1p%C5%9Bum@xn--rmpum-j0a3o6e4dtg.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; eforward3.registrar-servers.com
Diagnostic-Code: smtp; 554 5.7.1
<%C5%82%C5%8Dr%C4%99m%C4%B1p%C5%9Bum@xn--rmpum-j0a3o6e4dtg.com>: Relay
access denied
It seems like the email passes through the local SMTP server fine, but fails at the remote end. Possibly the namecheap mail server is configured in an ASCII-centric manner.
My chief question: I've already proven to myself that the server-part of the email can be be Polish, but can the user-part? If not, why? It seems to me that the above email, while incredibly ugly, is just ASCII, and shouldn't be treated specially by email systems that are not unicode-aware.