mailbox name can only contain alphanumerals and dot
-
Trying to add aliases for emails accounts I wish to move over to Cloudron I am coming up against this error:
mailbox name can only contain alphanumerals and dot
The addresses contain underscores which are valid in email addresses. I think this is a bug as hyphens are accepted as they should be.
-
Internally, the mail server uses LDAP for authentication and getting configuration information. In LDAP, the
_
is not a printable character - https://datatracker.ietf.org/doc/html/rfc2252#section-6.29 and has to be escaped. We ran into some issues because of a combination of LDAP protocol and the ldapjs (the node module we use). Apps also behave randomly if you have_
but this is in usernames though. For example,_
in the openvpn app causes trouble. This could have changed though, since we haven't tested this in many years now.Is it common to have underscore in email addresses? I haven't seen them in forever. Please also consider that such characters might be hard to type in certain keyboards and might also look like a different character in other languages. FWIW, gmail does not allow them.
-
-
I have fixed this in next release - https://git.cloudron.io/cloudron/box/-/commit/15d0dd93f45fe74c76a62637faabf9bfdd5efbfe . Just the one liner change. Not fixing usernames though since that is more complicated.
-
-
@girish There seems to me that there is an error in the commit in question : in the regex, you have
.-_
, which means "the range between the char".
and the char_
, and not "these 3 chars". You probably want to escape the-
with\
, or it will allow lots of other unwanted characters like]
,=
or^
-
-