Updating vhost template to use login@fqdn in the sendmail php_admin_value. Since postfix alias this address to the one in the member information
This commit is contained in:
parent
e3b0ad0c95
commit
88152b2eb8
|
@ -66,9 +66,9 @@ done
|
||||||
# sub_domaines.web_action = update and sub_domains.only_dns = false
|
# sub_domaines.web_action = update and sub_domains.only_dns = false
|
||||||
IFS="$NEWIFS"
|
IFS="$NEWIFS"
|
||||||
mysql_query "
|
mysql_query "
|
||||||
select concat_ws('$IFS',lower(sd.type), if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine), m.mail, sd.valeur )
|
select concat_ws('$IFS',lower(sd.type), if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine), concat_ws('@',m.login,v.value), sd.valeur )
|
||||||
from sub_domaines sd,membres m
|
from sub_domaines sd,membres m,variable v
|
||||||
where sd.compte=m.uid and sd.web_action ='UPDATE'
|
where sd.compte=m.uid and sd.web_action ='UPDATE' and v.name='mailname_bounce'
|
||||||
;" | while read type domain mail valeur ; do
|
;" | while read type domain mail valeur ; do
|
||||||
host_create "$type" "$domain" "$mail" "$valeur"
|
host_create "$type" "$domain" "$mail" "$valeur"
|
||||||
mysql_query "update sub_domaines sd set web_action='OK',web_result='$?' where lower(sd.type)='$type' and if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine)='$domain' and sd.valeur='$valeur'; "
|
mysql_query "update sub_domaines sd set web_action='OK',web_result='$?' where lower(sd.type)='$type' and if(length(sd.sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine)='$domain' and sd.valeur='$valeur'; "
|
||||||
|
|
Loading…
Reference in New Issue