function start() { build_progress("Loading LDAP config", 15); LoadLDAPDBs(); build_progress("Loading Transport data", 20); transport_maps_search(); build_progress("Loading Transport data", 25); relais_domains_search(); build_progress("Building Transport database", 30); build_transport_maps(); build_progress("Building Transport database", 35); build_relay_domains(); build_progress("Building Transport database", 40); restrict_relay_domains(); build_progress("Building Transport database", 50); build_cyrus_lmtp_auth(); build_progress("Building Transport database", 55); relay_recipient_maps_build(); $hashT = new main_hash_table(); $hashT->mydestination(); build_progress("Building Transport database", 60); mailbox_transport_maps(); build_progress("Building Transport database", 70); relayhost(); build_progress("Building Transport database", 80); perso_settings(); build_progress("{reloading_smtp_service}", 90); shell_exec("{$GLOBALS["postfix"]} reload >/dev/null 2>&1"); build_progress("{done}", 100); }
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(); relayhost(); postmaster(); build_cyrus_lmtp_auth(); shell_exec("{$GLOBALS["postfix"]} reload >/dev/null 2>&1"); function recipient_bcc_maps() { $ldap = new clladp(); $filter = "(&(objectClass=UserArticaClass)(RecipientToAdd=*))"; $attrs = array("RecipientToAdd", "mail"); $dn = "dc=organizations,{$ldap->suffix}"; $hash = $ldap->Ldap_search($dn, $filter, $attrs); for ($i = 0; $i < $hash["count"]; $i++) { $mail = $hash[$i]["mail"][0]; $RecipientToAdd = $hash[$i]["recipienttoadd"][0]; $GLOBALS["bcc_maps"][] = "{$mail}\t{$RecipientToAdd}"; } echo "Starting......: " . count($GLOBALS["bcc_maps"]) . " recipient(s) BCC\n"; }
function cmdline_transport() { LoadLDAPDBs(); transport_maps_search(); relais_domains_search(); build_transport_maps(); build_relay_domains(); restrict_relay_domains(); build_cyrus_lmtp_auth(); relay_recipient_maps_build(); $hashT = new main_hash_table(); $hashT->mydestination(); mailbox_transport_maps(); relayhost(); }