Allow special characters in local-part for custom domain email addresses
when trying to set the local-part for my custom domain email address to "~"
I get this error message:
"Only alphanumerics, periods, hyphens, and underscores are allowed in the local part of the email address, and it must begin and end with alphanumerics." all I can say is why?
"it must begin and end with alphanumerics."
this is so arbitrary! it's an email address' local-part not a username..
for many years, I have always used ~@myna.me as my email address, before and after I self-hosted my email, I use it for all of my online accounts and and all of my contacts have it, I can't change it now.
this is a spec compliant email address local-part, you don't have to read any of the specs, just read this Wikipedia article section:
https://en.wikipedia.org/wiki/Email_address#Local-part
-
Jeremy commented
From :- https://en.wikipedia.org/wiki/Email_address#Local-part
Despite the wide range of special characters which are technically valid, organisations, mail services, mail servers and mail clients in practice often do not accept all of them. For example, Windows Live Hotmail only allows creation of email addresses using alphanumerics, dot (.), underscore (_) and hyphen (-).
Common advice is to avoid using some special characters to avoid the risk of rejected emails.
-
Wis commented
I would understand why you would not allow the plus (+) character because of the aliases feature *
but not why you would not allow the remaining !#$%&'*-/=?^_`{|}~ characters and why it has to start and end with an alphanumeric character.but I can imagine that fixing this would require changing somewhere in the code base a regex pattern for parsing the alias (the part after the plus in the local-part of the email address), probably making it a little more complicated.
so I should have titled this post "allow us to have whatever spec compliant characters (excluding +) in the local-part of custom domain email addresses" , I can't edit it now.
* https://protonmail.com/support/knowledge-base/creating-aliases/