?
Solved

Email & Domain Name

Posted on 2008-06-23
3
Medium Priority
?
405 Views
Last Modified: 2012-05-05
I have registered a domain name e.g. www.abc.com for my server having ip lets say 111.111.111.111 which is running Fedora Core 8

The server is running Apache only. For my website which is hosted on my server I just have to type the domain name in my browser. But my server does NOT contain any mail server and I don't want to run any.
I already have another mail server obviously with a different IP.

I want to send my webpage traffic to my new server (with apache) and mail like (info@abc.com) to the other one.

Please guide me how to do this.

I am quite a beginner so please describe everything in detail.
0
Comment
Question by:systemsautomation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Expert Comment

by:Kamran Arshad
ID: 21844822
Hi,

You need to change the MX record of your domain "www.abc.com" to point to your mail server. Say for example your web server has IP address "111.111.111.111" and your mail server has IP address "111.111.111.112". Now you have to edit the zone file of your domain "www.abc.com" and add the below entries:

mail         IN     A       111.111.111.112
IN     MX     10     mail.abc.com.


The above two lines will send all mails to your mail server.
0
 
LVL 14

Accepted Solution

by:
agriesser earned 1000 total points
ID: 21844958
You need to make sure that the MX record (Mail Exchanger record) of your domain points to your mail server.

Let's say you have the domain abc.com and have two servers, 1.1.1.1 and 1.1.1.2 where 1.1.1.1 is the mail server for your domain and 1.1.1.2 will host the websites.

You will need to have some A records for your servers in place, f.ex.:

web.abc.com 1.1.1.2
www.abc.com 1.1.1.2
mail.abc.com 1.1.1.1

So that you can access these machines with a pretty hostname instead of using the IP-address.

When mail is sent to a domain, the mailserver searches the DNS database for the so called MX record to see which machine handles mail for this domain.
There should be only one MX record for your domain (probably two with different priorities if you want to establish a backup MX) and this MX record should then point to your mail server.

Another important thing is the reverse lookup entry (PTR record).
If mail.abc.com will send mails directly to other mailservers (without using your provider's smarthost) you need to make sure that the IP address 1.1.1.1 resolves back to your domain name.
Some e-mail servres check for valid PTR records before they accept mail from you and if you don't provide such a PTR record you might get blacklisted by them.

You can verify your settings using `nslookup` (either on Linux or on Windows, whatever platform you're running on your desktop).

First, make sure that the A records are in place:

nslookup
www.abc.com
mail.abc.com

The output should look like this then:

# nslookup
> www.abc.com
Server:         yourdns
Address:        yourdns#53

Name:   www.abc.com
Address: 1.1.1.2
>
>
>
> mail.abc.com
Server:         yourdns
Address:        yourdns#53

Non-authoritative answer:
Name:   mail.abc.com
Address: 1.1.1.1
> exit

If you want to check your MX record, use the "set q=MX" command in nslookup like this:

# nslookup
> set q=MX
> abc.com
Server:         yourdns
Address:        yourdns#53

Non-authoritative answer:
abc.com    mail exchanger = 5 mail.abc.com.

Authoritative answers can be found from:
mail.abc.com       internet address = 1.1.1.1


To check the valid PTR record, use "set q=PTR":

# nslookup
> set q=PTR
> 1.1.1.1
Server:         yourdns
Address:        yourdns#53

Non-authoritative answer:
1.1.1.1.in-addr.arpa       name = mail.abc.com.

Authoritative answers can be found from:


I hope that helps you in understanding what's needed, but please note that DNS changes usually take some time to complete because all DNS servers on this planet need to update the information you made on your provider's DNS server, so expect waiting for several hours before you can see the correct values on foreign DNS servers.
0
 
LVL 3

Expert Comment

by:dextermain
ID: 21850296
Do you have these server behind a router that has a static ip address , but the Servers (Email and Webserver ) is not internal IP's

If so what type of router do you have, so that I can help you to do the NAT translation.

Regards D ;)
0

Featured Post

Bringing Advanced Authentication to the SMB Market

WatchGuard announces the acquisition of advanced authentication provider, Datablink, with one mission – to bring secure authentication to SMB, mid-market, and distributed enterprises with a cloud-based solution, ideal for resale via their established channel & MSSP community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question