We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

multiple domain names and email addresses

Q010797
Q010797 asked
on
Medium Priority
337 Views
Last Modified: 2010-04-22
Heya all..

I have a mail server here with more than one domain name.
I want to be able to receive email via info@domainname.com for each domain.  at the moment, they all goto the main domain name.  How do I setup virtual domain emails?  even if it's just aliasing of some kind.  what is the best way to do this?
Comment
Watch Question

Commented:
If you are using sendmail as your mail server, there are instructions for setting up virtual domains at http://www.sendmail.org/virtual-hosting.html

Author

Commented:
That's a little more of a complicated answer than I wanted.  Can't you just give me some example files and what to type where and how?

Commented:
Its a complicated answer because its a complicated question, any example configuration would have to be modified to fit your specific installation anyway...

Author

Commented:
well can you give me an example config that all I have to do is put the domain in the right spot?  you already know I only have 2 domains and want the examples with sendmail 8.8.8 and linux 2.0
The best way to do this is placing each and every domainname in the sendmail.cw file.

EXAMPLE: .....
idiot.com
killer.com
boo.com

All these entries in the sendmail.cw file

Author

Commented:
that's not what I want.  I want (on the same mail server) the two email addresses kept seperate

info@domain1.com
info@domain2.com

how do I do this?

Commented:
One solution is the following:
Create accounts info-1, info-2, info-3 etc. Then write to /etc/mail/aliases (or where ever that file is in your system) the following lines:
info@domain1.com:  info-1
info@domain2.com:  info-2
info@domain3.com:  info-3
etc for all the domains. Then run newaliases and you're done. All the different domains should have separate info-account.

Author

Commented:
nah that was the FIRST thing I tried... the mail arrives in the info@domain1 account no matter which one I try and send it to.

Commented:
Hi, again, Q. Please provide the ff:

1. Sendmail version (I suggest using 8.9.x as it has some stuff to make this easier)

2. Does your /etc/sendmail.cf contain something like:

  Kvirtuser hash -o /etc/virtusertable

? If so you're halfway there. If not, well, you really ought to check out the URL RoboBob provided. (Actually you should read it in any case...)

3. Do you have different IPs for the domains? If so, do you have DontProbeInterfaces setup as an option in your sendmail.cf?

I may have a few more questions depending on your answers to these. All for now...!

Author

Commented:
am using sendmail 8.8.8

no it doesn't have the above Kvirtuser line.  The only Kvirtuser line is :

#Kvirtuser dbm /etc/virtusertable
as you can see it's # out anyway.

The domains all share the same IP range.
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.