LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-04-2002, 11:47 AM   #1
explorer1979
Member
 
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88

Rep: Reputation: 15
Question How to setting the Virual Domain Mail Server by sendmail?



Hi all,

I am now running a RH 7.2 mail server.

It have a registered domain name like this one, www.magazine.com.hk (www is host name) with a IP address

I want to make this mail server for multi domain's mail server like that

tproject.com.hk and cheer.com.hk with the same IP too?

How to make like this in Red Hat 7.2 and sendmail?

Do any example for refernce?

Thanks a lot
 
Old 06-04-2002, 02:26 PM   #2
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
Set up your local-host-names file (probably /etc/mail/local-host-names) with one domain per line, as such:

Code:
tproject.com.hk
cheer.com.hk
Unlike making changes to aliases or the virtusertable, you must restart Sendmail to load in the local-host-names file, as such:

Code:
kill -HUP `head -1 /var/run/sendmail.pid`
The DNS entries for your domains must have an MX record for your mail server as well, so if you do your own DNS, edit each domain's zone file with an appropriate MX record, as such:

Code:
@         IN    MX  10        www.magazine.com.hk.  ; assumes www.magazine.com.hk is the mail server
Hope that helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail - wrong mail sender domain display jika Linux - Newbie 1 05-27-2005 02:29 AM
Setting up popa3d and sendmail to work as mail server JCdude2525 Linux - Networking 2 12-07-2004 09:35 PM
Domain Routing to Postfix from Sendmail = Wrong IP information in Mail Logs! dholingw Linux - Networking 2 05-20-2004 10:06 AM
Setting up Sendmail using a dynip domain name Ripshred Linux - Networking 6 11-24-2003 01:13 PM
Changing domain sendmail sends mail with greenhornet Linux - Networking 5 09-09-2002 01:42 AM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration