Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2008
    Posts
    39

    new mail server setup

    Not sure if this is the right forum to ask this in but i'll give it a shot

    I want to setup a mail server on a CentOS box on a cable connection via comcast. We have a commerical account with one IP address only but the server will be behind a router. Will I have to manually assign the server an ip address? As of right now I cant see the server from the outside. What will I have to do to have email route to that box?

    Thanks in advanced.

  2. #2
    Join Date
    Jan 2006
    Location
    Athens, Greece
    Posts
    1,479
    Have you assign a domain name to it?
    Is port 25 open from the router?
    If it's sendmail, by default it listens on the local interface only.

  3. #3
    Join Date
    Oct 2007
    Location
    Northampton, UK
    Posts
    553
    Hi there,

    Yes you'll want to give your mail server a (private) static IP address and then port forward port 25 on the firewall to your mail server.

    So the only visable machine on the internet is your firewall (which has your public address) but using NAT it can send the correct packets for port 25 to your mailserver.

    Regards - Matt
    SysAdminMan - Asterisk PBX hosting - FreePBX, A2Billing and Elastix

  4. #4
    Join Date
    Feb 2008
    Posts
    39
    Thanks for the responses!
    Yes the box has a domain name attached. Yes port 25 is open. I will have to change to port 25 from the local interface.

    So if I setup NAT I can route the email to my server.
    Anybody know a good tutorial on how to setup NAT

    Thanks!

    Oh one more thing Will i have to have DNS setup on the box as well?

  5. #5
    Join Date
    Oct 2007
    Location
    Northampton, UK
    Posts
    553
    Which box do you mean for DNS? Not the firewall you won't.

    If you mean the mail server then it will at least need to resolve DNS names.

    What router are you using? Setting up NAT will be specific to that.

    regards - Matt
    SysAdminMan - Asterisk PBX hosting - FreePBX, A2Billing and Elastix

  6. #6
    You don't need to setup DNS on the box. You'll need to setup the "MX" record to your public IP on your registar.

    Search "NAT" + the_name_of_your_router and you may find a tutorial for your router
    Freelancer, Sys Admin
    http://dryice.name/blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •