
|
View Full Version : two email addresses. same username, different domains?
matt2kjones 04-25-2003, 05:40 PM ok i have wanted to know this for ages
i have my own server, not at a datacenter, or anything, just at the home.
the only control panel i have is webmin
i use sendmail as my mail server
anyway, how could i have username@domain1.com & username@domain2.com, but as seperate email addresses?
because i have three domains:
crystalphase.com
thedigitaldream.co.uk
tranceforums.com
problem is, i want matt@thedigitaldream.co.uk to be a completly seperate account from matt@crystalphase.com
at the moment, if someone sends mail to matt@crystalphase.com and i open outlook express to check my matt@thedigitaldream.co.uk email address, the mail is there.
at the moment i just create a linux user, and it works, thats as far as i know, but what i dont understand is how i could have two email addresses, which are both 'matt' but at different domain names.
because i cant understand how you can have two users on your system with the same username, and i dont understand how you assign them a domainname
is there anywhere i can read up on this
thanx for your time
Matthew Jones
Winkie 04-25-2003, 06:37 PM You can do it with qmail, usernames are matt%crystalphase.com etc if I remember correctly.
blacknight 04-25-2003, 06:39 PM Maybe I misread your post...
Do you want the same email alias ie.
user@domain1.com
user@domain2.com
OR
does it have to be the same username for linux?
matt2kjones 04-26-2003, 08:16 AM well this is the only way possible i know how to do this
is two create two users
matt and matt2
have matt just as a standard linux user, so mail from any domain goes to him as default.
then create matt2, then in sendmail, create a virtuser, so that mail to matt@crystalphase.com will go to matt2, and matt@any-other-domain.com will go to the other matt
but then that is a bit stupid, because the username for matt@crystalphase.com would be matt2
and if the user logs into webmail, it will use the address matt2@crystalphase.com
thats thats what i dont understand
two sepearate users, with the same username for the server, but different domains:
matt@thedigitaldream.co.uk
matt@crystalphase.com
how do you setup the users in linux to do that?
Thanx
i am a 04-26-2003, 09:00 AM i may be wrong, but i'm 99% sure you can't easily do that in sendmail without hacking it up a bit.
take a look at qmail (as pointed out)
http://lifewithqmail.com/lwq.html
it's designed for this sort of thing and also a lot more secure than sendmail
matt2kjones 04-26-2003, 02:01 PM i cant run qmail, because im looking to installing cpanel on my next server. and qmail wont work with cpanel am i correct?
what about exim???
can that do what i need, because exim works with cpanel doesn't it?
thanx :)
RajanUrs 04-26-2003, 02:32 PM the problem is with Outlook Express. Different emails end up in the same inbox.
This can be over come in two ways.
1. Install Message Rules for each account to send different emails to respective folders.
2. In Outlook Express you can have separate user accounts where you can logout and login and switch accounts. Configure the email accounts in separate OE user accounts. You can also have passwords for each account if you want someone else to manage a particualar user account.
matt2kjones 04-26-2003, 02:43 PM its not outlook at all
this is what i mean
i want matt@thedigitaldream.co.uk and matt@crystalphase.com to be totally differnt addresses own by totally different people, for example, matt@thedigitaldream.co.uk will belong to someone in the uk, and matt@crystalphase.com will belong to someone in the us
BUT, i dont get how you do this
Jedito 04-26-2003, 02:47 PM I don't fully understand what you mean, but anyway, Cpanel does not work with Sendmail, it use Exim.
matt2kjones 04-26-2003, 02:54 PM ok lets put it this way
has a host here ever had two different customers, with, for example, these domains:
domain1.com
domain2.com
so domain1.com belongs to customer 1, and domain2.com belongs to customer two.
now surely you have had two customers, want for example webmaster@their-domain.com
now what i dont understand is how two people can both have the same email addresses. i know they both have different domains, but i dont understand how customer one could have admin@domain1.com and customer two have admin@domain2.com
get what i mean now
Thanx
Luxore 04-26-2003, 03:05 PM there are different mail handling systems, and even different ways of installing the same system.
my company uses qmail for email. qmail delivers mail into files that are owned by qmail. so there is no connection between a linux username and a mailbox name and so you can have a matt in every domain and there is no problem.
sendmail (back when i used it years ago) had mailboxes which belonged to the individual unix user and so in order to support domain email we would create instructions for translating name@domain into username@localbox. depending on the sophistication of your translation you could have lots of matts or only one matt.
you could make a map that would send matt@domain1 to box445@localbox and matt@domain2 to box994@localbox in order to support multiple matts, but each one would have to collect mail using the login name of their local box. this is one step harder for end users to understand and remember.
in general i am happier with qmail, but now we have to tell users to log in with their full email address.
edit: we have also used exim. like sendmail you have to set up a mapping of mail address to usernamebox. and this means that the user would have to remember a login name different from his email address.
matt2kjones 04-26-2003, 03:10 PM ahhh right thanx
so its just sendmail that creates the mail boxes by adding unix users?
does exim do the same sort of thing as you just described
as i wanna create a system with cpanel. which will support what i need
thanx for your answer
matt
Noldar 04-26-2003, 04:47 PM You need to configure sendmail for virtual hosting. This should answer some of your questions.
http://www.sendmail.org/virtual-hosting.html
Exim as well as most other MTAs can be configured for virtual hosting as well, although they may call it something different.
Richard
|