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();
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}";
    }
Esempio n. 2
0
if(isset($_GET["relay-domain-table"])){RelayDomainsTable(1);exit;}
if(isset($_GET["relay-recipient-table"])){RelayRecipientsTable(1);exit;}
if(isset($_GET["relay-sender-table"])){SenderTableLoad(1);exit;}



	
if(isset($_GET["PostfixAddRoutingRuleTableSave"])){PostfixAddRoutingRuleTableSave();exit;}
if(isset($_GET["PostfixAddRoutingTable"])){PostfixAddRoutingRuleTable();exit();}
if(isset($_GET["PostfixAddRoutingTableSave"])){PostfixAddRoutingTableSave();exit;}
if(isset($_GET["PostfixAddRoutingLoadTable"])){echo routingTable();exit;}
if(isset($_GET["LoadRelayDomainsTable"])){echo RelayDomainsTable();exit;}
if(isset($_GET["PostFixDeleteRoutingTable"])){PostFixDeleteRoutingTable();exit;}

if(isset($_GET["relayhost"])){relayhost_tabs();exit;}
if(isset($_GET["relayhost-popup"])){relayhost();exit;}
if(isset($_GET["relayhost-sasl-auth"])){relayhost_sasl_auth();exit;}
if(isset($_GET["relayhost-sasl-config"])){relayhost_sasl_config();exit;}
if(isset($_GET["relayhostSave"])){relayhostSave();exit;}
if(isset($_GET["noanonymous"])){smtp_sasl_security_options_save();exit;}


if(isset($_GET["RelayHostDelete"])){RelayHostDelete();exit;}
if(isset($_GET["PostfixLocalLoadTable"])){echo LocalTable();exit;}
if(isset($_GET["PostfixSenderLoadTable"])){echo SenderTableLoad();exit;}

if(isset($_GET["SenderTable"])){SenderTable();exit();}
if(isset($_GET["SenderTableSave"])){SenderTableSave();exit;}
if(isset($_GET["SenderTableDelete"])){SenderTableDelete();exit;}

if(isset($_GET["PostfixDeleteRelayDomain"])){PostfixDeleteRelayDomain();exit;}
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);
}
Esempio n. 4
0
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsPostfixAdministrator){
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
	die();
}

if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;}
if(isset($_GET["js"])){js();exit;}
if(isset($_GET["popup"])){tabs();exit;}

if(isset($_GET["stunnel"])){stunnel();exit;}
if(isset($_GET["enable_stunnel"])){stunnel_save();exit;}

if(isset($_GET["relayhost"])){relayhost();exit;}
if(isset($_GET["server"])){relayhost_save();exit;}

if(isset($_GET["popup-auth-mech"])){smtp_sasl_mechanism_filter();exit;}
if(isset($_GET["plain"])){smtp_sasl_mechanism_filter_save();exit;}


if(isset($_GET["stunnel-status"])){echo main_stunnel_status();exit;}
if(isset($_GET["ApplyConfig"])){echo ApplyConfig();exit;}
if(isset($_GET["FillSenderForm"])){echo FillSenderForm();exit;}
if(isset($_POST["smtp_sender_dependent_authentication_email"])){smtp_sender_dependent_authentication_submit();exit();}


function js(){
	
	$tpl=new templates();
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();
}