Email Addressing - Needs fixing

Discussion in 'General' started by Telco, Dec 8, 2007.

  1. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
    I have a domain with a - in it. It seems that the email domain will accept but it will not allow you to create any users under that domain.

    To test I used the domain test.com
    it works I was able to create a user test@test.com

    Then I created a domain test-test.com
    I was not able to create any users. It says that user already exists to any name.

    a fix would be appreciated. Since I now can't use it as my email server. :(
     
  2. lek

    lek Guest

    Thanks for your post Telco,

    We'll review this issue and when the fix is ready i'll post the results here.
     
  3. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
    Thank you edgar.

    oh and this is a FANTASTIC product. I will be contacting you personally about donations etc...
     
  4. hetii

    Joined:
    Jun 7, 2007
    Messages:
    32
    Likes Received:
    0
    Hello everybody :)

    i write patch to fix that problem, just save attached file on elastix machines and run:

    patch -p0 < paloSantoValidar.class.patch

    regards.

    P.S.

    Why on this website is limit for file extension ? :p

    http://forum.elastix.org/old_files/paloSantoValidar.txt

    so just run patch -p0 < paloSantoValidar.txt<br><br>Post edited by: hetii, at: 2007/12/10 16:10
     
  5. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
    Tried that I recieved this response

    patching file paloSantoValidar.class.php
    Hunk #1 FAILED at 295.
    1 out of 1 hunk FAILED -- saving rejects to file paloSantoValidar.class.php.rej
     
  6. hetii

    Joined:
    Jun 7, 2007
    Messages:
    32
    Likes Received:
    0
    hmm strung :)

    ok so manualy edit /var/www/html/libs/paloSantoValidar.class.php

    and find if(!eregi("^([a-z0-9]+(\.[a-z0-9\-_]+)*@[a-z0-9]+(\.[a-z0-9\-_]+)*(\.[a-z]{2,3}))+$", $variable)) {

    and replace with:
    if(!eregi("^([a-z0-9]+(\.[a-z0-9\-_]+)*@[a-z0-9.-]+(\.[a-z0-9\-_]+)*(\.[a-z]{2,3}))+$", $variable)) {

    ofcorse you can add your /var/www/html/libs/paloSantoValidar.class.php here and i check why patching fails.

    With version of elastix you use ?
     
  7. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
    I will try that. The version that I have is 0.9.1-4
     
  8. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
    I manually changed it and I still have the issue. I am enclosing the file.
     
  9. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
  10. bmacias

    Joined:
    Sep 27, 2007
    Messages:
    205
    Likes Received:
    0
    Hello, the correct regular expresion is:

    "^[a-z0-9]+([\._\-]?[a-z0-9]+[_\-]?)*@[a-z0-9]+([\._\-]?[a-z0-9]+)*(\.[a-z0-9]{2,4})+$"

    this fix will be in elastix 0.9.2
     

Share This Page