smtp_generic_maps(); sender_dependent_relayhost_maps(); smtp_sasl_password_maps(); shell_exec("{$GLOBALS["postfix"]} reload >/dev/null 2>&1"); die; } maillings_table(); aliases_users(); aliases(); catch_all(); build_aliases_maps(); build_virtual_alias_maps(); relais_domains_search(); build_relay_domains(); relay_recipient_maps_build(); recipient_canonical_maps_build(); recipient_canonical_maps(); sender_canonical_maps_build(); sender_canonical_maps(); smtp_generic_maps(); sender_dependent_relayhost_maps(); smtp_sasl_password_maps(); recipient_bcc_maps(); recipient_bcc_maps_build(); sender_bcc_maps(); sender_bcc_maps_build(); build_local_recipient_maps(); mydestination_search(); mydestination(); transport_maps_search(); build_transport_maps();
function recipient_canonical_maps() { recipient_canonical_maps_build(); $recipient_canonical_maps = array(); $pst = new postfix_extern(); $pstData = $pst->build_extern("master", "recipient_canonical_maps"); if ($pstData != null) { $recipient_canonical_maps[] = $pstData; } if (!isset($GLOBALS["recipient_canonical_maps"])) { $GLOBALS["recipient_canonical_maps"] = array(); } if (count($GLOBALS["recipient_canonical_maps"]) > 0) { echo "Starting......: " . date("H:i:s") . " Postfix " . count($GLOBALS["recipient_canonical_maps"]) . " recipients retranslation rule(s)\n"; $recipient_canonical_maps[] = "hash:/etc/postfix/recipient_canonical"; @file_put_contents("/etc/postfix/recipient_canonical", implode("\n", $GLOBALS["recipient_canonical_maps"])); shell_exec("{$GLOBALS["postmap"]} hash:/etc/postfix/recipient_canonical >/dev/null 2>&1"); } if (count($recipient_canonical_maps) > 0) { echo "Starting......: " . date("H:i:s") . " Postfix " . count($recipient_canonical_maps) . " retranslation database(s)\n"; shell_exec("{$GLOBALS["postconf"]} -e \"recipient_canonical_maps = " . @implode(", ", $recipient_canonical_maps) . "\" >/dev/null 2>&1"); } else { echo "Starting......: " . date("H:i:s") . " Postfix 0 retranslation database\n"; shell_exec("{$GLOBALS["postconf"]} -X \"recipient_canonical_maps\" >/dev/null 2>&1"); } }