Solved

E-mail server for two domains

Posted on 2000-05-05
3
198 Views
Last Modified: 2010-03-18
I have a linux box running red hat 6.0. It is already the sendmail and pop mail server for one domain and I am interested in setting mail services up on it for a second domain.  Is this possible or do I need a seperate server and if it is possible can someone offer some suggestions as to how I might do it?

Thanks
0
Comment
Question by:unclesid
3 Comments
 

Accepted Solution

by:
jarvisc earned 20 total points
ID: 2782625
You can have loads of domains on the one machine...

You will need to set the MX records in whatever DNS holds the domains to point to you machine.

Then edit the /etc/sendmail.cw file and add the domains you are willing to accept mail for.

Relaying mail is another issue. The details for that is in /etc/mail/
here you can set which domains or even IPs can relay mail through your machine and onto the internet...

cheers,
jarvisc
0
 

Author Comment

by:unclesid
ID: 2790357
That sounds pretty straight forward but how would I distinguish between users of the different domains?  For example, all mail that is sent through the system now has @xxx.com after the username but if I had two domains I would want @xxx.com for some users and @yyy.com for other users.
0
 

Expert Comment

by:liyang
ID: 2851586
Have you looked into qmail for doing this? Although a bit fiddly to install at first (no nice ./configure scripts!)domain management seems quite a bit easier with that... You can even have user-managed domains if you want. (you set it up so that all mail to yyy.com is forwarded to a certain user, that user then puts where they want foobar@yyy.com to be forwarded to into ~/.qmail-yyy-foobar, and so on, the rest is either bounced, or can be caught with a ~/.qmail-yyy-default. I'm probably not explaining myself very well here! ^^;;;)

Anyway, the initial hassle of installing it is well worth the benifits that it provides, IMHO.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now