LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2003, 11:42 AM   #1
Firelogic
LQ Newbie
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Redhat
Posts: 3

Rep: Reputation: 0
Same Username, Different Domains


Hi, I have a question that I haven't been able to find the answer to. I've checked google, as well as this and other forums ..

Here goes. Let's say I have a Linux-based server for webhosting, email etc.
On this server I am hosting two domains: domain1.com and domain2.com, each for a different client, where client1 owns domain1.com and client2 owns domain2.com.

client1 wants to add a user, "john", with email "john@domain1.com".
client2 wants to add a user, "john", with email "john@domain2.com".

How can I add two (or more) users in Linux with identical names? How do "large" hosting companies manage this?

Thanks in advance,
 
Old 12-05-2003, 02:48 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Generally speaking the 'username' part of email address can have nothing in common with the shell user name (although usually have).
Currently I am using qmail which allows to do what you want even w/o any shell user creation.

In your post you didn't name the SMTP server you are using.
Probably it is the most popular -sendmail- which I believe allows to do that also.
But I can help you only with qmail setting. Sorry.
 
Old 12-05-2003, 03:05 PM   #3
Firelogic
LQ Newbie
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Redhat
Posts: 3

Original Poster
Rep: Reputation: 0
Hi, thanks for your reply

I do know how to setup the virtuser table with Sendmail (although I've been tossing around the idea of switching to qmail).

I always assumed that in large virtual-hosting situations where, say, a hosting company will use a control panel like Plesk/CPanel/etc., when you go to "add user" in the control panel you are in fact creating a Linux user a la "useradd" command?

Are you suggesting that what the control panel is really doing is simply creating a virtual user in the [smtp-server/mta]?
 
Old 12-06-2003, 03:44 AM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Unfortunately I am not using any "control panels" etc for configuring Linux services. Generally I hate to use them and prefer to manually edit the config files. The reasons why I prefer such method are very simple:
- I fully control what I'm doing
- less extra stuff = more secure system + less extra files, configs, etc.

So sorry, I can't help you. I don't know what is happening what you create virtual user with your stuff.

Regarding qmail. It is really worth to switch to. This stuff was released years ago and up to know there is no new versions although there is a special bonus found by the author (D.J. Bernstein) for the person who finds the bug. So it looks like really bug-free. Sendmail was updated a lot of times since the security holes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
Multiple domains? WorldBuilder Linux - Networking 2 05-13-2005 08:51 PM
useradd: invalid username username$ engyeow Fedora 5 12-05-2004 04:35 AM
Adding Domains dougclark Linux - Networking 3 06-02-2004 11:26 AM
Sub Domains Mag|c Slackware 0 06-23-2003 07:30 AM


All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration