Beispiel #1
0
}
if ($argv[1] == '--luser-relay') {
    luser_relay();
    die;
}
if ($argv[1] == '--smtp-sender-restrictions') {
    smtp_cmdline_restrictions();
    ReloadPostfix(true);
    die;
}
if ($argv[1] == '--postdrop-perms') {
    fix_postdrop_perms();
    exit;
}
if ($argv[1] == '--smtpd-restrictions') {
    smtp_cmdline_restrictions();
    die;
}
if ($argv[1] == '--repair-locks') {
    repair_locks();
    exit;
}
if ($argv[1] == '--smtp-sasl') {
    SetSALS();
    SetTLS();
    smtpd_recipient_restrictions();
    smtp_sasl_security_options();
    MasterCFBuilder();
    MailBoxTransport();
    ReloadPostfix(true);
    exit;
Beispiel #2
0
if($argv[1]=='--ssl'){MasterCFBuilder(true);die();}
if($argv[1]=='--ssl-on'){MasterCFBuilder(true);die();}
if($argv[1]=='--ssl-off'){MasterCFBuilder(true);die();}
if($argv[1]=='--imap-sockets'){imap_sockets();die();}
if($argv[1]=='--policyd-reconfigure'){policyd_weight_reconfigure();die();}
if($argv[1]=='--restricted'){RestrictedForInternet(true);die();}
if($argv[1]=='--others-values'){OthersValues();CleanMyHostname();ReloadPostfix(true);die();}
if($argv[1]=='--mime-header-checks'){mime_header_checks();ReloadPostfix(true);die();}
if($argv[1]=='--interfaces'){inet_interfaces();exec("{$GLOBALS["postfix"]} stop");exec("{$GLOBALS["postfix"]} start");ReloadPostfix(true);die();}
if($argv[1]=='--mailbox-transport'){MailBoxTransport();ReloadPostfix(true);die();}
if($argv[1]=='--disable-smtp-sasl'){disable_smtp_sasl();ReloadPostfix(true);die();}
if($argv[1]=='--perso-settings'){perso_settings();die();}
if($argv[1]=='--luser-relay'){luser_relay();die();}
if($argv[1]=='--smtp-sender-restrictions'){smtp_cmdline_restrictions();ReloadPostfix(true);die();}
if($argv[1]=='--postdrop-perms'){fix_postdrop_perms();exit;}
if($argv[1]=='--smtpd-restrictions'){smtp_cmdline_restrictions();die();}
if($argv[1]=='--repair-locks'){repair_locks();exit;}
if($argv[1]=='--smtp-sasl'){SetSALS();SetTLS();smtpd_recipient_restrictions();smtp_sasl_security_options();MasterCFBuilder();ReloadPostfix(true);exit;}
if($argv[1]=='--memory'){memory();exit;}
if($argv[1]=='--postscreen'){postscreen($argv[2]);ReloadPostfix(true);exit;}
if($argv[1]=='--freeze'){ReloadPostfix(true);exit;}
if($argv[1]=='--body-checks'){BodyChecks();ReloadPostfix(true);exit;}
if($argv[1]=='--amavis-internal'){amavis_internal();ReloadPostfix(true);exit;}
if($argv[1]=='--notifs-templates'){postfix_templates();ReloadPostfix(true);exit;}
if($argv[1]=='--restricted-domains'){restrict_relay_domains();exit;}




if($argv[1]=='--reconfigure'){
	if($GLOBALS["EnablePostfixMultiInstance"]==1){