Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. mailbox name can only contain alphanumerals and dot

mailbox name can only contain alphanumerals and dot

Scheduled Pinned Locked Moved Solved Support
email
11 Posts 5 Posters 1.7k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ccfu
    wrote on last edited by girish
    #1

    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.

    C 1 Reply Last reply
    5
    • C ccfu

      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.

      C Offline
      C Offline
      ccfu
      wrote on last edited by
      #2

      It would be good to know whether this is a bug as I assume or a deliberate feature / limitation of the mailserver implementation.

      1 Reply Last reply
      2
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #3

        Pulling in @girish since this sounds like a bug or maybe related to some mail server quirk.

        1 Reply Last reply
        2
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          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.

          See also: https://support.google.com/mail/thread/2835604/i-want-to-create-my-account-with-underscore-sign?hl=en

          robiR 1 Reply Last reply
          1
          • girishG girish

            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.

            See also: https://support.google.com/mail/thread/2835604/i-want-to-create-my-account-with-underscore-sign?hl=en

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #5

            @girish they are common, esp in the crowded free email hosting space. Yahoo got it right, Google didn't, so instead of fixing it all they disabled it on the front end.

            Conscious tech

            girishG 1 Reply Last reply
            1
            • robiR robi

              @girish they are common, esp in the crowded free email hosting space. Yahoo got it right, Google didn't, so instead of fixing it all they disabled it on the front end.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @robi yeah, i stand corrected. Looking into my address book, I have a bunch of hotmail and yahoo addresses with underscores in them.

              1 Reply Last reply
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                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.

                C mehdiM 2 Replies Last reply
                1
                • girishG girish

                  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.

                  C Offline
                  C Offline
                  ccfu
                  wrote on last edited by ccfu
                  #8

                  @girish

                  Thanks for fixing this.

                  Btw. Google does accept underscores on business accounts (thats where we used them in some aliases), but as you pointed out not on Freemail accounts. In fact Gmail doesn't even allow hyphens.

                  girishG 1 Reply Last reply
                  1
                  • C ccfu

                    @girish

                    Thanks for fixing this.

                    Btw. Google does accept underscores on business accounts (thats where we used them in some aliases), but as you pointed out not on Freemail accounts. In fact Gmail doesn't even allow hyphens.

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    @ccfu ah good to know that the business gmail allows them.

                    1 Reply Last reply
                    1
                    • girishG girish

                      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.

                      mehdiM Offline
                      mehdiM Offline
                      mehdi
                      App Dev
                      wrote on last edited by
                      #10

                      @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 ^

                      girishG 1 Reply Last reply
                      2
                      • mehdiM mehdi

                        @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 ^

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #11

                        @mehdi 😳 good catch, will fix!

                        1 Reply Last reply
                        2
                        • mehdiM mehdi referenced this topic on
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search