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.