Posts by flames

    Welcome to our Forum.


    here are too few polish members, so i guess you wont get much help translating. But you are welcome to try your self. A full translation could attract more polish users to i-MSCP.


    if you get technical questions, just ask in english, or if your english is not good, write here in polish corner but very good polish so google translator is most effective

    Es hat sich einiges geändert, unteranderem die Roundcube Plugin-API wurde stark überarbeitet, das alte Plugin dürfte somit gar nicht mehr funktionsfähig sein mit Roundcube 0.9 (es wurde meines Wissens noch für 0.2 oder so geschrieben).
    Wie Ninos sagte, beste Lösung wäre ein Update auf die aktuelle i-MSCP version.

    [code=php]<?php


    require '../../library/imscp-lib.php';


    $cfg = iMSCP_Registry::get('config');
    $db = iMSCP_Registry::get('db');


    echo "//CONFIGURATION FOR MAIN DOMAIN\n";
    echo "zone \"$cfg->BASE_SERVER_VHOST\"{\n";
    echo "\ttype slave;\n";
    echo "\tfile \"/var/cache/bind/$cfg->BASE_SERVER_VHOST.db\";\n";
    echo "\tmasters { $cfg->BASE_SERVER_IP; };\n";
    echo "\tallow-notify { $cfg->BASE_SERVER_IP; };\n";
    echo "};\n";
    echo "//END CONFIGURATION FOR MAIN DOMAIN\n\n";


    $query = "SELECT `domain_id`,`domain_name` FROM `domain`";
    $rs = exec_query($query);
    if ($rs->rowCount() == 0) {
    echo "//NO DOMAINS LISTED";
    } else {
    $records_count = $rs->rowCount();
    echo "//$records_count HOSTED DOMAINS LISTED ON $cfg->SERVER_HOSTNAME [$cfg->BASE_SERVER_IP]\n";


    while (!$rs->EOF){
    echo "zone \"".$rs->fields['domain_name']."\"{\n";
    echo "\ttype slave;\n";
    echo "\tfile \"/var/cache/bind/".$rs->fields['domain_name'].".db\";\n";
    echo "\tmasters { $cfg->BASE_SERVER_IP; };\n";
    echo "\tallow-notify { $cfg->BASE_SERVER_IP; };\n";
    echo "};\n";
    $rs->moveNext();
    }
    }
    echo "//END DOMAINS LIST\n\n";


    $query = "SELECT `alias_id`,`alias_name` FROM `domain_aliasses`";
    $rs = exec_query($query);
    if ($rs->rowCount() == 0) {
    echo "//NO ALIASSES LISTED";
    } else {
    $records_count = $rs->rowCount();
    echo "//$records_count HOSTED ALIASSES LISTED ON $cfg->SERVER_HOSTNAME [$cfg->BASE_SERVER_IP]\n";


    while (!$rs->EOF){
    echo "zone \"".$rs->fields['alias_name']."\"{\n";
    echo "\ttype slave;\n";
    echo "\tfile \"/var/cache/bind/".$rs->fields['alias_name'].".db\";\n";
    echo "\tmasters { $cfg->BASE_SERVER_IP; };\n";
    echo "\tallow-notify { $cfg->BASE_SERVER_IP; };\n";
    echo "};\n";
    $rs->moveNext();
    }
    }
    echo "//END ALIASSES LIST\n";


    ?>[/php]


    put it into /var/www/imscp/gui/public/domain/index.php on your primary dns / imscp server
    create a .htaccess that allows only your secondary dns ip to call the script.


    on your secondary:
    create a cronjob
    */30 * * * * /usr/bin/wget http://IP-OF-PRIMARY-DNS/domain/ -O /etc/bind/named.hostname.conf && /etc/init.d/bind9 reload && /usr/bin/logger "i-MSCP: DNS zones updated from hostname\!"


    then in /etc/bind/named.conf add the line
    include "/etc/bind/named.hostname.conf";


    replace hostname with the hostname or something that identify your primary server


    not the best solution, but works. ofc here ist the bind configuration missing, if you want i can write a full howto. because you need to configure your primary and secondary for zone transfer, rndc keys and such :)

    Moment, hast Du i-MSCP oder iSPCP? Für iSPCP bist Du eher im falschen Forum.
    Wenn Du i-MSCP hast, das Roundcube hat den PW Changer bereits an Bord und funktioniert tadellos, schau in der Roundcube Config, ob er aktiviert ist.


    Hilfreich zu wissen wäre noch welche i-MSCP und Roundcube Version bei Dir im Einsatz ist.

    I use a separate server specific for secondary dns, which is secondary to multiple imscp primarys :)
    the synchronization i do with a simple php script on every primary dns (it reads domains and aliases from imscp db and generates an output for slave)
    on the slave there is a cron job, which calls the php scripts on the primarys with wget, saves to /etc/bind/hostname.conf, those are linked in named.conf
    bind ist configured to transfer the zones with rndc (with key)
    pretty simple and works fine for a few years :)

    und entferne alle einträge betreffend der domain aus den dateien in /etc/postfix/imscp/
    füge eine datei hinzu /etc/postfix/relay_domains
    und ttrage diese datei in main.cf als relay_domains map


    in diese datei die domains eintragen die auf den externen mailserver per mx record umgeleitet sind.
    dann hashe die postfix maps. done


    da sind ausführliche anleitungen
    http://forum.i-mscp.net/Thread…=howto+externe+mailserver (englisch)
    http://forum.i-mscp.net/Thread…=howto+externe+mailserver (deutsch)


    diese funktion ist allerdings schon in git master eingebaut (achtung status beachten oben im forum bevor update machst, zur zeit ist master defekt)

    in /etc/hostname ist der Hostname srv01 ist in Ordnung
    Was eher ein Problem ist, abundzu, aber wirklich nur abundzu, haut das Setup in die main.cf von postfix config auch den kurzen rein, worüber sich postfix dann aufregt. Ich denke das liegt aber eher an mangelhafter Vorkonfiguration in den speziellen Fällen.

    Daran wird noch gearbeitet, ein wenig Geduld. Bis dahin kannst Du Dir auch die Postfix Maps per Script (cron gesteuert) durchforsten.

    please add option "i dont care" to the poll, since its a poll, i vote for "i dont care" :D


    i voted for "no" because i also think, the manpower could be used for more important things.
    the frontend is oriented to end-customers, who are not alwaysenglish speaking techs. but installer is for server admin only, forgive me if i say, that an admin has to know enough english to go through installer :)