Your right it does not make much sense but the idea is to make the
change transparent to
the end user. I just came across a IMAP server that allows this type of
virtual users,
but each mail domain has to have a unique IP, and it uses this to scope
multipule users 'jim'
to the proper system user.

Thanks for your help

Regards,

Jim 


I'm sorry but that makes absolutely no sense to me.

Just saying you want two seperate and distinct users to login with the
identical string is unrealistic. I mean, how is the server to know who
"jim"
is if he's not in some way unique?

If you mean using the name 'scoped' with the domain as a login,
ie."[EMAIL PROTECTED]" and "[EMAIL PROTECTED]", then it's possible. Or if you're
storing
a domain mask; in which case they're tied to a machine/subnet which is
generally not good and a real hassle.

Your IMAP/POP package, whether it be U of Washington's, Carnegy Melon's
(cyrus), or another is where you want for mappings like that. Personally
I've never had the need to reverse map it that way. If you know Perl
this
would be a quick hack, basically just reversing the virtuser table for
all
local accounts... provided that there's no support in the IMAP software
for
it.

-----Original Message-----
From: Jim Finucane [mailto:[EMAIL PROTECTED]]
Sent: June 1, 2001 08:21
To: CF-Linux
Subject: [ RE: OT: multipule popusers with the same username]


Are you guys on the west coast or are you just night people,
I thought I was the only guy pulling all nighters anymore.

I am using sendmail (redhat 6.2) and I do have the bat book,
and I am fairly competent at basic config of sendmail
(I even have "The UNIX Programming Environment" the old Kernighan/Pike
book)

I think that I am posing the question incorrectly, the problem is not
really a sendmail issue the virtuser table is fine if the user is not a
pop account.
My problem is I need [EMAIL PROTECTED] and [EMAIL PROTECTED] to both be
available as
separate pop accounts with the username info.

In your example in order to get the mail for [EMAIL PROTECTED] the user would
have to login as customer1a
what I would like to do is have that user login as jim even if they
really are customer1a,
same thing for [EMAIL PROTECTED] I would like that user to login as jim
also.

I hope this clarifies things, and thank you for your help.

Jim Finucane


-------- Original Message --------
Subject: RE: OT: multipule popusers with the same username]
Date: Thu, 31 May 2001 22:41:48 -0700
From: "Raymond B." <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Linux <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>

If you're using sendmail you can easily do this with the virtuser table.

# customer 1's accounts
[EMAIL PROTECTED]    customer1a              <-- local account
[EMAIL PROTECTED]   customer1b
[EMAIL PROTECTED]    [EMAIL PROTECTED]      <-- remote mapping

# customer 2's accounts
[EMAIL PROTECTED]  customer2a
[EMAIL PROTECTED] customer2b
[EMAIL PROTECTED]   customer2c
[EMAIL PROTECTED]   [EMAIL PROTECTED]
@there.com              customer2d

# old customers (no longer paying)
@gone.org               error:nouser GO AWAY!   <-- error sent to user

To do this declare FEATURE(`virtusertable') in your mc file. If you're
fine
w/ a hash -o database declaration then just run M4 and SIGHUP sendmail
to
get it to use the new config, otherwise you can pass a second argument
declaring a differnt db type and file location. If you don't have M4 (or
another config agent) you'll need to 'touch virtusertable' in the
/etc/sendmail (or wherever it is on your system) and DEFINE() the
mappings
yourself.

Now either edit the virtusertable text file by hand, or use a
configuration
agent. One thing to note though, is sendmail only does ONE lookup to
this
table so you can't redirect back and forth between aliases (stops
circular
loops).

You might also want to consider using the generics table if you'd like
to do
reverse mapping on send.

If you need more info look into the various sendmail resources around.
Sendmail has enourmously power capabilities but to someone uninitiated
in
its workings (especially coming from a win32 enviroment where they
blindfold
you and only let you touch every 1000th dial in most programs) it can
seem
very imposing.

The sendmail 'Tome' is incredibly thick as there's pratically an entire
scripting/regexp language built into it, and a host of utilities like M4
for
configuring. I'd suggest O'Reilly's "Sendmail" (hanging bat book) if you
want to get into its workings.

Newer packages like qmail offer a gentler learning curve at the expense
of
power. I don't want to get into the 'elitest' *nix vs. win32 discussion
but
I will say that learning sendmails rulesets and classes are well worth
the
time and effort for even small system.

If you're set on having NT style "mail has no bearing to users" where
you
can create smtp/pop accounts independent of system users: IIRC there are
a
few linux packages that do such. I'm not familiar w/ any of them though,
so
you'll have to google it (or ask around).


-----Original Message-----
From: Jim Finucane [mailto:[EMAIL PROTECTED]]
Sent: May 31, 2001 19:38
To: CF-Linux
Subject: [Re: OT: multipule popusers with the same username]


Tony,

Thanks for the info, but I what I really need is the opposite.
I need the pop username mapped to the real user and have the
process appear transparent to the user.

Ex: [EMAIL PROTECTED] logs in as jim
then the popserver maps the user name(jim) to usr0001
and [EMAIL PROTECTED] logs in as jim and the popserver maps the user name
(again jim)
to usr0002 ...etc.

My problem is I have 68 mail domains that I have been told to move to a
linux box
and about half of them use info as their pop account, as you can imagine
I do not
want to tell clients that their username is now info1 info2 ...etc
because info is
being used by another client. I know that this can be done because we
previously
used iserver for our hosting and as long as I could remember they had
this service,
I just never new how they did it and they aren't telling.

Ever try a setup like this?

Thanks again for the info,

Regards,

Duncan Idaho



-------- Original Message --------
Subject: Re: OT: multipule popusers with the same username
Date: Thu, 31 May 2001 14:33:00 -0400 (EDT)
From: Tony Schreiber <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Linux <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>

domain aliases can have the same username (xxxxx@), but you cannot have
more than one of the same system username. In this instance, you should
assign unique pop3 usernames, like DOMA0001, DOMA0002 and DOMB001,
DOMB002
and assign your aliases as necessary.

For example, my sendmail.db looks like this:

[EMAIL PROTECTED]  busa0001
[EMAIL PROTECTED] busa0002
@bisazzausa.com     bisazza

[EMAIL PROTECTED]  busa0001
[EMAIL PROTECTED] busa0002
@mosaictile.com     bisazza

[EMAIL PROTECTED]     othr0001
[EMAIL PROTECTED]    othr0002

etc...

> I know that this is way off topic but I have been following this list
> for some time
> and thought that maybe some of you have run into the same problem.
> So here the problem,
>
> I would like to host multiple domains on the same
> Linux box, but I need to be able to have multiple popusers with the same
> username.
> EX: [EMAIL PROTECTED] to user jim
>     [EMAIL PROTECTED] to a different user named jim
>
> I know that under linux I cannot have two different users with the same
> name, but I also know
> that many hosting companies have a system that will map a popuser jim to
> a real user.
>
> I searched the mail newsgroups to no avail, I found this same question
> posted in
> different forms on the lists but could never find an answer.
>
> I would like to know if any of you have had this problem, and how you
> solved it.
> (did you buy third party software, found an open source solution...etc)
>
> Regards,
>
> Jim
> --------------------------------------------------------------------------
------
>                             B L A Z E   i n t e r . N E T
>                  103 Pleasant Ave #2    |  Jim Finucane - Hoopy Frood
>        Upper Saddle River, NJ  07458    |  jim(at)blaze.net
>            201-825-1313 Fax-825-4949    |  http://www.blaze.net
> --------------------------------------------------------------------------
------
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to