Current time: 11-23-2024, 11:14 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[HOWTO] Using the CLI to manage ispcp via command line (scripts)
Author Message
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #56
RE: [HOWTO] Using the CLI to manage ispcp via command line (scripts)
(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 ...
11-15-2010 07:42 PM
Find all posts by this user
Thread Closed 


Messages In This Thread
RE: Using the CLI with ispcp - aseques - 05-08-2009, 11:26 PM
RE: [HOWTO] Using the CLI to manage ispcp via command line (scripts) - aseques - 11-15-2010 07:42 PM

Forum Jump:


User(s) browsing this thread: 8 Guest(s)