Adding an e-mail user to a domain starting with a digit

Discussion in 'Installation/Configuration' started by catdude, Aug 27, 2007.

  1. catdude

    catdude ISPConfig Developer ISPConfig Developer

    One of the domains I am currently hosting on Plesk has a digit as it's first character. I can't add a user to this domain, as the user name then starts with a digit and the add script complains "Field: Username
    The user name has to contain a minimum of 4 and a maximum of 32 letters or figures and has to begin with a letter."

    I already have a bunch of domains running under ISPConfig, so I can't switch the user name prefix from [Domain] to [Web]. Any ideas how I can handle this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can change the regular expression that checks the username in the file /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php
     
  3. catdude

    catdude ISPConfig Developer ISPConfig Developer

    Can I expand the width of isp_isp_user.user_username without breaking anything?

    Thank you! That's just what I was looking for. That issue has now been resolved.

    But that leads me to my next issue. Some of our customers create really long domain names (what ever happened to short, simple domain names?). A few of those have longish user names as well. So if one of my customers owns myveryownreallylongdomainname.com (length 33 if I counted correctly), and has a user named projectinspector, that user will have to authenticate with a really chopped-up user name. Could I extend the size of isp_isp_user.user_username to perhaps 64 without breaking things elsewhere?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. But be careful when you update ISPConfig, you will ahve to extend the field length in the sql dump that is in the install_ispconfig dir too before you run a update, or your usernames might get truncated.
     
  5. catdude

    catdude ISPConfig Developer ISPConfig Developer

    Thanks for the warning


    I doubt I would have thought of that - thank you!
     

Share This Page