Les catchalls sont configuré correctement quand on créé un domaine "slave"

This commit is contained in:
Alan Garcia 2012-10-20 15:14:34 +00:00
parent 88f709ee24
commit da6fc77d67
2 changed files with 6 additions and 6 deletions

View File

@ -386,7 +386,7 @@ class m_dom {
$hooks->invoke("hook_dom_add_domain",array($id));
$hooks->invoke("hook_dom_add_mx_domain",array($id));
if ($isslave) {
$hooks->invoke("hook_dom_add_slave_domain",array($id));
$hooks->invoke("hook_dom_add_slave_domain",array($id, $slavedom));
}
return true;
}

View File

@ -793,14 +793,14 @@ class m_mail {
/** hook function called by AlternC when a domain is created for
* the current user account using the SLAVE DOMAIN feature
* This function create a CATCHALL to the master domain
* @param string $dom Domain that has just been created
* @param string $master Master domain
* @param string $domain_id Domain that has just been created
* @param string $target_domain Master domain
* @access private
*/
function alternc_add_slave_domain($dom,$slave) { //FIXME don't we have to change his name ?
function hook_dom_add_slave_domain($domain_id,$target_domain) {
global $err;
$err->log("mail","alternc_add_slave_domain",$dom);
$this->add_mail($dom,"",0,"","@".$slave);
$err->log("mail","hook_dom_add_slave_domain",$domain_id);
$this->catchall_set($domain_id,'@'.$target_domain);
return true;
}