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 |
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 |
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 |
Hi Mark,
Quote:
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. |
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 |
All times are GMT -5. The time now is 04:20 PM. |