Mail server in DNS

HeXeR Član
uredil/-a 30. September, 2006 v Programi
Torej kateri mail server priporočate za Ubuntuja, 64 bit ....

potrebujem predvsem SMTP za forume in PHP, ostali pa bi bilo tudi lepo če bi bilo. :)

in pa kteri DNS server ? Nekaj sem slišal o Bind ... kaj menite Vi.

hvala.
«13

Komentarji

  • Kami Član Ubuntu.si
    Za SMTP maš lahko kr sendmail ki je bolj simple al pa postfix.

    Za DNS server pa bind tako kot si že napisal.
  • Uh, postfixa sem pripravil da teče lokalno ... probleme imam s Bindom ... je kej kakšen članek kako to konfigurirat ?

    Lp
  • Kami Član Ubuntu.si
    Na unix.si maš en članek o tem
  • Za tistega že vem .... :)
  • bl4z Član Ubuntu.si
    za dns uporabljam mydns, ki ima dns zapise lepo v bazi ter lepi php vmesnik .. ni tako razsirjen kot bind, kar je po eni strani dobro, ker ga manj ""hekajo""
    za mail imas pa: postifx, q-mail, sendmail .. skor vseena za kterga se odlocis pac za tistga k ga najbol poznas (jaz imam postifx)
  • bl4z je dejal/-a:
    za dns uporabljam mydns, ki ima dns zapise lepo v bazi ter lepi php vmesnik .. ni tako razsirjen kot bind, kar je po eni strani dobro, ker ga manj ""hekajo""
    za mail imas pa: postifx, q-mail, sendmail .. skor vseena za kterga se odlocis pac za tistga k ga najbol poznas (jaz imam postifx)
    Potem myDNS lahko nastavim na recimo port 81 pa tam dostopam preko http://0.0.0.0:81/ ?
  • HeXeR Član
    uredil/-a 2. October, 2006
    Probal sem namestiti MyDns pa mi je zamrznilo med inštalacijo, tisti Sy... no v glavnem potem sem končal s kill proces, sedaj pa ne gre uninštalirat, oz. sredi tega zamrzne, pa spet ubijem proces za Sy.. potem morem zagnat neko --conf ... itd potem pa odprem Synaptic-a pa kaže kot da ni več inštalirano, pod mydn-mysql al nekaj takega pa imam možnost popolna odstranitev, problem je da če dam to zamrzne ... če hočem dat pnovna namestitev pa javi da ma paket napako, pod lastnosti sem gledal pa kaže kot da imam še 2 datoteki na disku obe v /etc/... ena v init.d vendar sem preveil z sudi nautilus in nobena od teh datotek ne obstaja ... problem pa je nastal tako da ko sem prvič inštaliral nisem imal baze v MySql ... kako naj zdaj prepričam kompa da tega paketa ni več gor ? gre za paket mydns-mysql al nekaj takega.

    hvala.

    Pa mimogrede bi še vprašal kako nastavit da lahko dostopam preko www vmesnika ?
  • bl4z Član Ubuntu.si
    cist simpl je .. ampak mors brat docs:

    1. nardis bazo mydns na mysql serverju
    2. naredis mydns userja
    3. instaliras mydns z apt-get install mydns-mysql
    4. pozenes in zadeva dela ..

    ce ti nebo ratal ti pestan confige in shemo baze .. pol pa neb smel bit vec problem

    se en screen
    image
  • zdaj grem na trening ko pridem domov pa bom poskusil, hvala. Samo nisi napisal kako dostopam do baze, ti greš v /mydnsadmin/ na serverju kot je na sliki .... jaz pa te mape nimam ...
  • bl4z Član Ubuntu.si
    to skripto posames nekam v public_html .. nima veze kje je
  • bl4z je dejal/-a:
    to skripto posames nekam v public_html .. nima veze kje je
    kje pa jo dobim ?
  • Torej tole se mi dogaja :

    hexer@server:~$ sudo apt-get install mydns-mysql
    Password:
    Branje seznama paketov... Narejeno
    Gradnja drevesa odvisnosti... Narejeno
    Naslednji dodatni paketi bodo nameščeni:
    mydns-common
    Naslednji NOVI paketi bodo nameščeni:
    mydns-common mydns-mysql
    0 nadgrajenih, 2 na novo nameščenih, 0 bo odstranjenih in 0 ne nadgrajenih.
    Potrebno je dobiti 0B/777kB arhivov.
    Po odpakiranju bo uporabljenega 1757kB dodatnega prostora na disku.
    Ali želite nadaljevati [Y/n]? y
    Preconfiguring packages ...
    Selecting previously deselected package mydns-common.
    (Reading database ... 75576 files and directories currently installed.)
    Unpacking mydns-common (from .../mydns-common_1.1.0+pre-3_all.deb) ...
    Selecting previously deselected package mydns-mysql.
    Unpacking mydns-mysql (from .../mydns-mysql_1.1.0+pre-3_amd64.deb) ...
    Setting up mydns-common (1.1.0+pre-3) ...
    Setting up mydns-mysql (1.1.0+pre-3) ...
    /etc/mydns.conf created/modified. See mydns.conf(5) for details.
    A backup of the old config file is at /etc/mydns.conf.dpkg-old. Values
    were preserved, except for database information (database,db-*).
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    Creating database...
    mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: YES)'
    dpkg: error processing mydns-mysql (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    mydns-mysql
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    hexer@server:~$ mysql-mydns --configure
    bash: mysql-mydns: command not found
    hexer@server:~$
  • Sem rešil, problem, ... formatiral sem :)

    sedaj pa imam drug problem:

    hexer@server:~$ sudo apt-get install mydns
    Branje seznama paketov... Narejeno
    Gradnja drevesa odvisnosti... Narejeno
    E: Ni mogoče najti paketa mydns
    hexer@server:~$ sudo apt-get update
    Dobi:1 http://security.ubuntu.com dapper-security Release.gpg [191B]
    Dobi:2 http://si.archive.ubuntu.com dapper Release.gpg [189B]
    Dobi:3 http://si.archive.ubuntu.com dapper-updates Release.gpg [189B]
    Zadetek http://si.archive.ubuntu.com dapper Release
    Zadetek http://security.ubuntu.com dapper-security Release
    Zadetek http://si.archive.ubuntu.com dapper-updates Release
    Zadetek http://si.archive.ubuntu.com dapper/main Packages
    Zadetek http://security.ubuntu.com dapper-security/main Packages
    Zadetek http://si.archive.ubuntu.com dapper/restricted Packages
    Zadetek http://si.archive.ubuntu.com dapper/main Sources
    Zadetek http://security.ubuntu.com dapper-security/restricted Packages
    Zadetek http://security.ubuntu.com dapper-security/main Sources
    Zadetek http://security.ubuntu.com dapper-security/restricted Sources
    Zadetek http://si.archive.ubuntu.com dapper/restricted Sources
    Zadetek http://si.archive.ubuntu.com dapper-updates/main Packages
    Dobi:4 http://si.archive.ubuntu.com dapper-updates/restricted Packages [14B]
    Zadetek http://si.archive.ubuntu.com dapper-updates/main Sources
    Dobi:5 http://si.archive.ubuntu.com dapper-updates/restricted Sources [14B]
    Dobljenih 31B v 1s (21B/s)
    Branje seznama paketov... Narejeno
    hexer@server:~$ sudo apt-get upgrade
    Branje seznama paketov... Narejeno
    Gradnja drevesa odvisnosti... Narejeno
    0 nadgrajenih, 0 na novo nameščenih, 0 bo odstranjenih in 0 ne nadgrajenih.
    hexer@server:~$ sudo apt-get install mydns
    Branje seznama paketov... Narejeno
    Gradnja drevesa odvisnosti... Narejeno
    E: Ni mogoče najti paketa mydns
    hexer@server:~$ sudo apt-get install mydns-mysql
    Branje seznama paketov... Narejeno
    Gradnja drevesa odvisnosti... Narejeno
    E: Ni mogoče najti paketa mydns-mysql
    hexer@server:~$
  • Ok, to sem rešil, inštaliral sem in vse, sedaj kako pridem do Web Admina ? Pa kako preverim če je DNS Server online ? S portlisten na 53 ne gre ...
  • HeXeR Član
    uredil/-a 5. October, 2006
    Fatal error: Cannot re-assign $this in /server/www/admin.php on line 2482

    ta error dobivam ... ve kdo zakaj ?

    Edit:

    ## AUTOMATICALLY GENERATED BY DEBCONF. DO NOT MODIFY DATABASE
    ## INFORMATION (database, db-*)...
    ## PLEASE RUN 'dpkg-reconfigure mydns-mysql' INSTEAD.
    ## ONLY THE FOLLOWING DIRECTIVES ARE PRESERVED:
    ## *cache*, listen, allow*, timeout, multicpu, ignore-minimum, *table

    ##
    ## /etc/mydns.conf
    ## Thu Oct 5 11:54:36 2006
    ## For more information, see mydns.conf(5).
    ##


    # DATABASE INFORMATION

    db-host = localhost # SQL server hostname
    db-user = mydns # SQL server username
    db-password = mydns_geslo # SQL server password
    database = mydns # MyDNS database name


    # GENERAL OPTIONS

    user = nobody # Run with the permissions of this user
    group = nogroup # Run with the permissions of this group
    listen = * # Listen on these addresses ('*' for all)


    # CACHE OPTIONS

    zone-cache-size = 4096 # Maximum number of elements stored in the zone cache
    zone-cache-expire = 60 # Number of seconds after which cached zones expires
    reply-cache-size = 4096 # Maximum number of elements stored in the reply cache
    reply-cache-expire = 30 # Number of seconds after which cached replies expire


    # ESOTERICA

    log = LOG_DAEMON # Facility to use for program output (LOG_*/stdout/stderr)
    pidfile = /var/run/mydns.pid # Path to PID file
    timeout = 120 # Number of seconds after which queries time out
    multicpu = 1 # Number of CPUs installed on your system
    allow-axfr = no # Should AXFR be enabled?
    allow-tcp = no # Should TCP be enabled?
    allow-update = no # Should DNS UPDATE be enabled?
    ignore-minimum = no # Ignore minimum TTL for zone?
    soa-table = soa # Name of table containing SOA records
    rr-table = rr # Name of table containing RR data

    -------------------------------------------------------
    tole je config file za myDNS, sedaj pa bi lepo prosil če mi kdo razloži, kako lahko naredim da mi bo vsej en od 2 Web vmesnikov z myDNS delal ?

    hvala.
  • bl4z Član Ubuntu.si
    preveris da ti dns dela z ukazom dig

    recimo da iams v svoj dns npisan www.moj.si

    torej sporbas:

    dig @ip_tvoje_masine www.moj.si

    ce ti vrne neke ije in saro pol dela :)
    aja .. odpret mors port 53 UDP !

    se v php skripti mors nastavit iste parametre za dostop do baze !
  • HeXeR Član
    uredil/-a 5. October, 2006
    bl4z je dejal/-a:
    preveris da ti dns dela z ukazom dig

    recimo da iams v svoj dns npisan www.moj.si

    torej sporbas:

    dig @ip_tvoje_masine www.moj.si

    ce ti vrne neke ije in saro pol dela :)
    aja .. odpret mors port 53 UDP !

    se v php skripti mors nastavit iste parametre za dostop do baze !
    sej v tem je finta, nikakor nemorem nič napisat v svoj DNS, kako to naredim ?

    Vsepovsod morem nampreč v WebAdmine dat noter kak naslov, jaz pa nimam nobenega ....
  • HeXeR Član
    uredil/-a 6. October, 2006
    Tako, imam dostop do MySql baze kamor shranjuje MyDns zapise in sicer preko phpMyAdmina, zdaj pa bi prosil če mi lahko kdo pove kako vstaviti kak zapis ? Lahko tudi kaki link, bilo kaj ?

    Edit: takole zgleda to:
    image
  • bl4z Član Ubuntu.si
    zdownlovdi source od mydns .. v folderju contrib je admin.php

    posnemi nekam na apacha .. gogogog
  • /*****************************************************************************
    CONFIGURABLE OPTIONS
    *****************************************************************************/

    /*
    ** Set the following four variables to the hostname of your SQL server, the
    ** username and password used to access that server, and the name of the
    ** database where your MyDNS data resides.
    */
    $dbhost = "localhost";
    $dbuser = "username";
    $dbpass = "password";
    $dbname = "mydns";


    /*
    ** This script uses MySQL by default. To use PostgreSQL instead, set
    ** '$use_pgsql' to '1'.
    */
    $use_pgsql = 0;


    /*
    ** The following two variables tell this script the name of your SOA
    ** table and the name of your RR table.
    */
    $soa_table_name = "soa";
    $rr_table_name = "rr";


    /*
    ** The following two values configure the number of records shown per page
    ** in the zone browser and the resource record editor, respectively.
    */
    $zone_group_size = 25;
    $rr_group_size = 20;


    /*
    ** This script can automatically update the serial number for a zone
    ** whenever a client modifies any record in that zone.
    ** Setting '$auto_update_serial' to '1' will enable this option.
    */
    $auto_update_serial = 0;


    /*
    ** This script can automatically update PTR records when you modify,
    ** add, or delete A records. To enable this functionality, set
    ** '$auto_update_ptr' to '1'. If you enable this, be sure to fill in
    ** the values for '$default_ns' and '$default_mbox', below, so that
    ** new SOA records will have the correct information.
    */
    $auto_update_ptr = 0;


    /*
    ** If this option is nonzero, this script will not complain if the
    ** TTL for a record is set below the zone minimum.
    **
    ** Note that if $ttl_min below is nonzero, that value will still be
    ** checked.
    */
    $ignore_minimum_ttl = 1;


    /*
    ** The following values are used by this script to enforce minimum values
    ** for SOA and RR records. The script will prevent clients from entering
    ** values lower than these numbers.
    */
    $ttl_min = 300;
    $refresh_min = 300;
    $retry_min = 300;
    $expire_min = 86400;


    /*
    ** The following two variables specify the default nameserver for new
    ** SOA records, and the default administrator mailbox for new SOA records.
    ** These will be filled in automatically whenever a new zone is created.
    */
    $default_ns = "";
    $default_mbox = "";


    /*
    ** The following array specifies default records for new SOA records.
    ** These get inserted automatically whenever a SOA is inserted.
    ** The format of each record is (name, type, aux, data).
    */
    $default_records = array(
    /* array("", "NS", 0, "ns.example.com."), */
    /* array("", "MX", 10, "mail.example.com.") */
    );


    /*
    ** The following five values will be used as default values whenever new
    ** zones are created.
    */
    $default_ttl = 86400;
    $default_refresh = 28800;
    $default_retry = 7200;
    $default_expire = 604800;
    $default_minimum_ttl = 86400;


    /*
    ** The remainder of these variables enable cosmetic changes.
    */
    $fontsize = 12; /* Default font size (pixels) */

    $font_color = "#663300"; /* Font color */

    $page_bgcolor = "white"; /* Page background color */
    $help_bgcolor = "#FFFFCC"; /* Main screen help box background color */
    $soa_bgcolor = "#FFFF99"; /* SOA editor background color */

    $list_bgcolor_1 = "#FFFFCC"; /* List items #1 background */
    $list_bgcolor_2 = "#FFFFAA"; /* List items #2 background */

    $query_bgcolor = "#FFFFCC"; /* Search query input background color */
    $query_fgcolor = "black"; /* Search query input font color */

    $input_bgcolor = "white"; /* Text input box background color */
    $input_fgcolor = "black"; /* Text input box font color */

    $highlight_color = "#E0E0E0"; /* Zone browser highlight color */

    /**** End of configurable options *******************************************/
    Kaj od tega morem spremenit ?

    To :
    $dbhost = "localhost";
    $dbuser = "username";
    $dbpass = "password";
    $dbname = "mydns";
    pa kozmetične stvari znam
    ostalo pa ???

    predvsem me zanima
    $default_ns = "";
    $default_mbox = "";
    pa tam ko imam možnost 0 in 1.

    hvala.
Za komentiranje se prijavite ali pa se vpišite.