Email Addressing - Needs fixing

Telco

Joined
Oct 4, 2007
Messages
275
Likes
0
Points
0
#1
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. :(
 

lek

Guest
#2
Thanks for your post Telco,

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

Telco

Joined
Oct 4, 2007
Messages
275
Likes
0
Points
0
#3
Thank you edgar.

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

hetii

Joined
Jun 7, 2007
Messages
32
Likes
0
Points
0
#4
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
 

Telco

Joined
Oct 4, 2007
Messages
275
Likes
0
Points
0
#5
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
 

hetii

Joined
Jun 7, 2007
Messages
32
Likes
0
Points
0
#6
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 ?
 

Telco

Joined
Oct 4, 2007
Messages
275
Likes
0
Points
0
#7
I will try that. The version that I have is 0.9.1-4
 

Telco

Joined
Oct 4, 2007
Messages
275
Likes
0
Points
0
#8
I manually changed it and I still have the issue. I am enclosing the file.
 

Telco

Joined
Oct 4, 2007
Messages
275
Likes
0
Points
0
#9

bmacias

Joined
Sep 27, 2007
Messages
205
Likes
0
Points
0
#10
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
 

Members online

No members online now.

Forum statistics

Threads
30,951
Messages
130,979
Members
17,652
Latest member
joeljag_19
Top