LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2003, 11:03 AM   #1
hrc
Member
 
Registered: Jun 2003
Location: Ohio
Posts: 54

Rep: Reputation: 15
multiple domains - and email


OK - I am running RHL9 as a web server with a handful of web sites (virtual hosts). Now here is my question - when someone ssh's to my box, opens up pine and sends an email it sends as the main domain of the box, not necessarily the domain that they are associated with. For example the name of my box is car.com (not real) but I also host a web site apple.com (joe q public owns apple.com). Now when joe q public sends an email from my machine (car.com) the email is joe@car.com not joe@apple.com. How do I associate certian users with certain domains? Does that make sense? Do I need to updated the domaintable file? Not even sure what to search for b/c I am really not sure what this would be called.....
Thanks again

Mark
 
Old 08-04-2003, 11:31 AM   #2
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
You really should have just gone to

<http://www.sendmail.ORG>

and looked up the answer :+)

You are indeed going on the right track in thinking you need to set up
the domaintable file.

The extremely easy to follow step by step guide for doing this is at

http://www.sendmail.org/virtual-hosting.html

For an very quick explanation/reference of the macro directives which are found in sendmail.mc, take a look at /usr/share/doc/sendmail/README.cf
 
Old 08-04-2003, 11:47 AM   #3
hrc
Member
 
Registered: Jun 2003
Location: Ohio
Posts: 54

Original Poster
Rep: Reputation: 15
Corin - again I owe you. laughing - I would have went to sendmail.org but didn't know it was a resource - let me read thru it - laughing - thanks again!!!
I tried to email you personally about this - but it looks like that option was turned off. I will keep you posted.


Mark
 
Old 08-04-2003, 12:06 PM   #4
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Hi Mark,

Quote:
Originally posted by hrc
I tried to email you personally about this - but it looks like that option was turned off. I will keep you posted.
Sorry, I had not set my profile up correctly. Could you try to use the e-mail option again and see if it works now?

Incidentally the reason why I am a bit familiar with sendmail, is because I recently battler with the configuration files in order to do the following --

sendmail is on my redhat 9 machine on a home LAN and is the gateway to my Internet connection.

I wanted e-mail from the redhat 9 to itself or other internal machines to use its internal name (mymachine.mydomain.COM)

When I send e-mail out to the wide world, I want the e-mail to go directly from my machine to the destination machine (and not use the ISP mailer as smarhost)

I need all the headers and envelope of the outbound external mail to be re-written to an address of an account I have on a registered Internet host machine (not connected with my ISP).

In the end it just needed the creation of a generics table and the activation of a few macro directives in the sendmail.mc, but it was a bit of a fight.

Last edited by Corin; 08-04-2003 at 12:18 PM.
 
Old 08-04-2003, 12:15 PM   #5
hrc
Member
 
Registered: Jun 2003
Location: Ohio
Posts: 54

Original Poster
Rep: Reputation: 15
Corin - just sent you a test email - give it a few and we shall see.

Also, I am still reading your links on the sendmail stuff - hopefully I can get everything working here soon.

Mark
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple domains? WorldBuilder Linux - Networking 2 05-13-2005 09:51 PM
Multiple email addresses with qmail (same prefix, different domains) Shaolyen Linux - General 1 11-17-2003 12:50 AM
RH 8.0 Multiple domains brif8 Linux - Networking 3 01-27-2003 07:08 PM
Multiple Domains? cic Linux - Networking 2 01-23-2002 07:38 AM
Multiple Domains??? cic Linux - Networking 1 10-08-2001 11:55 AM


All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration