Current time: 05-05-2024, 11:41 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[HOWTO] Using the CLI to manage ispcp via command line (scripts)
Author Message
mdilullo Offline
Newbie
*

Posts: 5
Joined: Oct 2010
Reputation: 0
Post: #55
RE: [HOWTO] Using the CLI to manage ispcp via command line (scripts)
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.
11-14-2010 04:31 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) - mdilullo - 11-14-2010 04:31 PM

Forum Jump:


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