PDA

View Full Version : Alias 1 character long


palcaraz
21st January 2010, 20:47
Hi,

How do I create an address like this 1@dominio.com? with ISPConfig 3 is necessary that the alias has at least 2 characters

Thanks, Pedro Alcaraz

till
22nd January 2010, 13:12
This is hardcoded. If you want, you can make a request to change this in the bugtracker.

palcaraz
28th January 2010, 11:25
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

Germanius
28th January 2010, 11:33
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.

till
28th January 2010, 11:33
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:

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


with:

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.

palcaraz
28th January 2010, 12:49
The source line number is 670 in version 3.0.1.6

Thanks
Pedro Alcaraz