Solved

Email for Multiple Domains on Same Server

Posted on 2002-06-13
9
260 Views
Last Modified: 2010-03-18
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
Comment
Question by:cfinniga
  • 5
  • 4
9 Comments
 
LVL 15

Expert Comment

by:samri
ID: 7080358
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
 

Author Comment

by:cfinniga
ID: 7080412
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
 
LVL 15

Expert Comment

by:samri
ID: 7080464
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
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
ID: 7080474
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:cfinniga
ID: 7080485
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
 

Author Comment

by:cfinniga
ID: 7095030
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
 
LVL 15

Expert Comment

by:samri
ID: 7095171
sure.

Best of luck on your exam!
0
 

Author Comment

by:cfinniga
ID: 7107970
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
 
LVL 15

Expert Comment

by:samri
ID: 7108038
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

21 Experts available now in Live!

Get 1:1 Help Now