(11-14-2010 04:31 PM)mdilullo Wrote: Hi thanks for the help last time.
Now I have another query.
When I create a mail alias the script says that the domain does not exist.
Looking at the code I found this online.
$result = $mysqli->query("SELECT `domain_id` FROM `domain` WHERE `domain_name`='$domain'");
But the problem is that the domain is an alias and the query no search for it.
Then change the line for this.
$result = $mysqli->query("SELECT `alias_id` FROM `domain_aliasses` WHERE `alias_name`='$domain'");
But It didn't work too.
There any way to do what I need.
php domain.php --action create_mail_alias --domain DOMAIN-ALIAS --mail_dst webmaster@DOMAIN --user temp
Thanks for the help.
That's a problem. I'm using ispcp in a particular way, when I create a domain alias, all the addresses are automatically pointing to their equivalents and I haven't implemented the mail alias option as you need.
More info here:
http://isp-control.net/documentation/how...base_quota
If you want to provide a patch to accomplish what you need, of course I'll accept it ...