Alias 1 character long

Discussion in 'Installation/Configuration' started by palcaraz, Jan 21, 2010.

  1. palcaraz

    palcaraz New Member

    Hi,

    How do I create an address like this [email protected]? with ISPConfig 3 is necessary that the alias has at least 2 characters

    Thanks, Pedro Alcaraz
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is hardcoded. If you want, you can make a request to change this in the bugtracker.
     
  3. palcaraz

    palcaraz New Member

    Update or not update

    I've seen that is resolved and is included in 3.0.2, but since I update my version 3.0.1.6 or should I wait?

    Thanks
    Pedro Alcaraz
     
  4. Germanius

    Germanius Member

    It is included in SVN, but SVN is only for development. I think it would be better if you wait until 3.0.2 is published.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Do not update your system to the current svn release as svn relaeses are only for development and shall not be installed on production systems.

    To get the changed alias check, you can manually edit the file /usr/local/ispconfig/interface/lib/classes/tform.inc.php and replace the line:

    Code:
    if(!preg_match("/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i", $field_value)) {
    
    with:

    Code:
    if(!preg_match("/^\w+[\w.-]*\w{0,}@\w+[\w.-]*\w+\.[a-z]{2,10}$/i", $field_value)) {
    The code must be aroud line 703, mybe plus minus a few lines as I dont have the current 3.0.1.6 installed here at the moment.
     
  6. palcaraz

    palcaraz New Member

    Work perfectly

    The source line number is 670 in version 3.0.1.6

    Thanks
    Pedro Alcaraz
     

Share This Page