LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2004, 09:55 PM   #1
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
2 Domain In Same server


Hi all,

I am back with a little questions :

I just bought new domain from networksolutions. inc
so now i got two domain :
1) abc.com
2) def.com

i already have mail server with domain abc.com
now i want to put the def.com into the mail server

Can i do this, will be a problem , how to do this ?
 
Old 08-19-2004, 10:22 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
From your subject line, I would assume you are hosting a DNS server at your home office.

You just need to follow the same steps you did to create your abc domain. Add def.com in named.conf, define its zone files in /var/named and you are all set.

you will need to configure your mail server to accept mails for both your domain names.
 
Old 08-19-2004, 10:59 PM   #3
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
Thanks,

I own my DNS server, i have set the domain into named.conf

Now i want to set my mail server to accept those two domain, where is need to setup this so the mail server will be able to send and receive all mails.


i am using sendmail and redhat 7.1
 
Old 08-20-2004, 12:27 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
the files you would need to look at are

/etc/mail/access and
/etc/mail/local-host-names
 
Old 08-20-2004, 12:48 AM   #5
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
Dear ppuru,

how about the file in /etc/host

did i need to make change of them too?
 
Old 08-20-2004, 12:52 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If you dns is able to resolve mailserver.def.com, it is not really necessary to put an entry in /etc/hosts.
 
Old 08-20-2004, 12:55 AM   #7
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
ok, thanks ppuru

i will tried it now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can get Sub domain in a server alejandroye Linux - Networking 3 05-12-2005 12:23 PM
Server Domain Name ??? ptreves Linux - Networking 6 09-12-2004 08:17 AM
Debian server as a domain server? Brother Michael Debian 1 05-13-2004 12:40 AM
SuSE 9, Samba server and Win2k server domain koskoboy Linux - Networking 3 12-11-2003 06:32 AM
domain name server sehgalnamit Linux - Networking 1 04-24-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration