Setting up a new Mailserver

Discussion in 'Server Operation' started by samir12, Jun 18, 2011.

  1. samir12

    samir12 New Member

    Hello there ,
    given a task to set up a new mail server in our small company ,

    we already have existing emails hosted by our ISP provider but we want to get rid of it as soon as our new mail server is up and running ,

    i went thru ubuntu10.10 tutorial
    and i have a couples of questions before installing the mai server
    we already have our web server hosted by a 3rd party www.airworldtours.com
    is this domain what i should use instead of example.com ??

    also server1.example.com wil replaced by mail.airworldtours.com

    please bear with me as i'm totlay new to linux

    and thanks in advance :)

    is there any set up that need to be done to my router i have a static ip adress
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes, you can use airworldtours.com instead of example.com. Make sure you use a hostname that you don't use for email addresses (such as server1.airworldtours.com).
     
  3. samir12

    samir12 New Member

    thank :)
    I finished the mail server using your guides thanks a lot
    but i have 2 issues I only can access phpmyadmin using my local network ip adress
    http://10.191.11.110/phpmyadmin
    but i cant acess it using my host name hattp://mail.airworldtours.com/phpmyadmin
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Did you create a vhost for mail.airworldtours.com, or does that address go to the same vhost that is used when you use 10.191.11.110?
    If you created a vhost for mail.airworldtours.com, you must install phpMyAdmin in that vhost (or create a symlink to an existing phpMyAdmin installation; make sure that symlinks are allowed in your vhost configuration).
     
  5. samir12

    samir12 New Member

    Hello Falko
    and thanks for your prompt reply

    i followed exactly the instructions on the how to :

    this my network interfaces setting :
    vi /etc/network/interfaces
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 10.191.11.110
    netmask 255.255.255.0
    network 10.191.11.0
    broadcast 10.191.11.255
    gateway 10.191.11.126
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 10.191.11.126
    dns-search airworldtour.com
    and my vi /etc/hosts


    127.0.0.1 localhost.localdoamin localhost
    10.191.11.110 mail.airworldtour.com mail

    # The following lines are desirable for IPv6 capable hosts
    ::1 localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters


    i reckon this server will only work on internal network , my ISP provide me with a static ip adress should i put that instead of 10.191.11.110

    thanks in advance
     
  6. samir12

    samir12 New Member

    ive fixed this issue :)
    but still my server only working on local network , i cant reach it from the internet
    any suggestion cheers
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Please check your router settings. You must forward all needed ports from your router to your server.
     

Share This Page