• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Email for Multiple Domains on Same Server

I have just added a second domain to my server, and I am having major problems setting up email for it.

Previous to that, there was just one domain assigned to the server. To add users for that first domain, basically I just used adduser and then they had email access.. simple. Now that there is a second domain on there (and more coming), I cannot keep using adduser because there will be conflics with usernames eg. people wanting webmaster, admin, etc for their domain. I wish to keep the emails consistant and not alias them to another username. eg I do not wish to alias webmaster@domain1.com to username webmaster01 and then webmaster@domain2.com to username webmaster02 or seomthing like that.

From what I have read, I believe a properly configured POP server can manage user authentication with out using /etc/passwd ie adduser?? Is this correct and how do I go about configuring for the above situation?

I hope my explanation is clear.. if not, just ask me to clarify it further.

Thanks in advance!
0
cfinniga
Asked:
cfinniga
  • 5
  • 4
1 Solution
 
samriCommented:
cfinniga,

What is you mail server.

If you happens to be running Sendmail Sendmail.org has a quite detail instruction on how to get virtual hosting configure (http://www.sendmail.org/virtual-hosting.html)

Back to your intention to have a real-user for webmaster@domain1.com, webmaster@domain2.com, I would believe if would not be possible due to limitation of Unix/Linux itself which requires each login id to be uniq on the system.  However, this might be possible if you are running some kind of Linux Virtual Server.  I could not comment much on this (due to limited knowledge).

Back to easier approach - VirtualHosting.  Most of the example would be RH7.2 centric.

The step would require you to have the MX entries for each of the domain you would be hosting to point to your mail server.  And if you are running sendmail, and the domain name you would be receiving mail to /etc/mail/sendmail.cw (or add the domain to Cw option in /etc/mail/sendmail.cf).

Next is to create a unix userid that would be receiving this email, for example webmaster-domain1, and add the entry in /etc/virtusertable;

webmaster@domain1.com <TAB> webmaster-domain1

Again, visit the sendmail website for a *much* more detailed information.

I hope this could be of some help.
do a "make" in /etc/mail
0
 
cfinnigaAuthor Commented:
samri,

Thanks.. but I am trying to find an alternative to that sendmail method that you described. I do not wish to have the user login with 'webmaster-domain1' when their email username is 'webmaster'.

I believe there is a solution out there somewhere, as the host for one of my sites allows an unlimited amount of email addresses, and the login is the same as the email address (as I am trying to achieve). The site is also being virtual served and is not on its' own dedicated box. So they are achieving it somehow.. I am about to email them and see if they can fill me in!.. fingers crossed! And I will also check out the Linux Virtual
Server method you suggested. Thanks.

Clint
0
 
samriCommented:
Clint,

Maybe you might want to check other MTA (Mail server) alternative.  If I recalled correctly, there is other mailserver that could do that.  However, the authentication might be tied up to /etc/passwd since authentication will be done via the mails server daemon.  I can not (duh) recally the product name however - it might me qmail, or postfix.  Apology (in advance) if the information is way-off.

The Virtual server approach will *definetely* work since each of the virtual-server would be *independent* to each other (even though they shared the same hw resources).  I haven't personally had much real experience with it. (just happen to know that they exist :)

good luck (anything new, I'll share it with you).
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
samriCommented:
I thinkg Qmail could do what you are looking for, except the authentication with /etc/passwd file.

I personally haven't tried Qmail (personally - die hard sendmail fan :)

Take a look at this link, it looks like you could implement such.

http://www.whirlycott.com/phil/pop3.html

The problem that wil arise is; the user (client) might end up login as a different userid is they were to manage the website.

cheers
0
 
cfinnigaAuthor Commented:
Yep, I think qmail looks like it is the way to go.. I am just reading about that now :) and I discovered that my host also uses qmail instead of Sendmail..

This explains in one line what I have been trying to explain in a paragraph: "non-system POP3 accounts" now I know the proper wording for what I am looking for :)

I will get back to you when I have read some more..
0
 
cfinnigaAuthor Commented:
samri,

Just letting you know I havent forgotten about this question. My ADSL has been down the last couple of days, and I've had Uni exams. I will be working on qmail tonight, so I will let you know how it goes..

Clint
0
 
samriCommented:
sure.

Best of luck on your exam!
0
 
cfinnigaAuthor Commented:
I have got qmail working for system username email, but I am having a bitch of a time getting it to work for other domains (non-system accounts). Your link definitely describes what I want to do, thanks again.

Finally.. you wouldn't happen to have any experience with qmail? :)

Clint
0
 
samriCommented:
Clint,

To be frank, until now, I knew it existed, a few claims that it's much better that Sendmail.  However, after knowing Sendmail for quite sometimes, it's kinda hard to toss the coin and decide.

Based on the information (on Qmail website), it looks promising with lots of feature that is not available on Sendmail;  But if we look back at the role of MTA (Mail Transport Agent), it should be dealing with sending and receiving mail; and all other - filter, throtteling, etc. etc, should be done externally.

If you have been around OS for a while, maybe that is why UNIX is so robust, because each component are/is suppose to do one thing, and it should do it well.  

However, newer demand for a product that "does" all is becoming popular.  And there goes the trend.

Good or bad, I don't know.  Untill now, I am comfortable to do my webpage with "vi" the Unix editor.  And even on Win2K, I tend to get vi for Win32.

Back to the Qmail -- very little experience.  But you will be surprise to see there are other EE members that might be able to help.  Just drop you question, and somebody might jump to help (maybe I would).

cheers.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now