Solved

E-mail server for two domains

Posted on 2000-05-05
3
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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 video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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