Dan,

I just posted a 'patch' to authlib/authmoduser.c that enables the
exact behavior you seek.

You are right, in your discovery, that virtual domains needed to
specifically identified as:  username@somedomain, instead of
the legacy  user joe (via an IP based domain somedomain.com)
and user joe (via IP based someotherdomain.com) being different.

I too needed to get away form Qmail (ick), and Courier lacked ONLY
this one small tweak to be nearly perfect.

Please take a look at the patch (just posted this week) on the list
relating to IP Based Domains....


Randy Lewis
RTMX.NET
North Carolina
---------------

Dan Yost wrote:
> 
> Hello all,
> 
> I'm having trouble with the interaction between userdb, aliases,
> hostnames, hosteddomains, and the like.  Looks like this is tricky for
> lots of folks, or so I've been reading, but I thought somebody out there
> might be able to help me cutover to courier more smoothly.  Upon the
> advice of some of you, it looks like I'm going to switch to courier 0.37.2
> (running on Red Hat 7.0)  instead of courier-imap+qmail/sendmail+maildrop
> (standalone maildrop).  Now, I'd really like to make this cutover
> completely invisible to all of my mail users...otherwise maybe I'll just
> turn off my phone after the cutover, since I know they won't all get my
> email instructions and follow them.
> 
> Here's the deal.  I host mydomain.com, myotherdomain.com, yadayada.com,
> and so forth.  Currently, using sendmail with mbox files, user
> [EMAIL PROTECTED] pops his mail as "user joe, pass joespass" via port 110
> (simplified).  Now, I've got the userdb set up, along with hosteddomains,
> to accept mail for [EMAIL PROTECTED]  However, now joe has to pop mail (or
> login via imap) as "user [EMAIL PROTECTED], pass joespass."  This is fine
> with me.  From now on, this is how I'll set up new users and domains.  If
> I put mydomain.com in /etc/courier/locals then mydomain.com will always be
> stripped, which is no good because from now on I'll use the above manner,
> with no system accounts and possibly identical names for different users
> on different domains (i.e. [EMAIL PROTECTED] and [EMAIL PROTECTED], but they're different
> people).  I only have a few folks (myself, for example) who won't be in
> userdb because they have shell accounts and will receive mail accordingly.
> However, for the other users I *already* have, I'd like to do some sort of
> kludge to map "joe" to "[EMAIL PROTECTED]" for the purposes of
> *authentication*, not just mail delivery.  I know that I can edit
> /etc/courier/aliases/system and map [EMAIL PROTECTED] and
> [EMAIL PROTECTED] to a local real system account joe, with the result
> being that mail sent to "[EMAIL PROTECTED]" as well as
> "[EMAIL PROTECTED]" will be delivered to the system account joe, and
> this is the case where some users get mail from multiple domains.  I've
> tried to accomplish the equivalence for authentication with aliases:
> "joe: [EMAIL PROTECTED]" since "[EMAIL PROTECTED]" is what's in userdb, but
> it won't authenticate.  I hope I'm making sense.  I just want to be able
> to set user equivalence for a defined set of legacy users for the purpose
> of *authentication*, not just delivery.  Delivery I can do, authentication
> I'm stuck on.
> 
> E.G.:
> It'd be nice if I could do something like this in userdb:
> [EMAIL PROTECTED] <tab>
> home=/home/vmail|mail=/home/vmail/domains/mydomain.com/joe|...|anothername=joe
> 
> That way, when pop3d/imapd receives "user joe, pass joespass," courier
> would say "Well, I see that 'joe' is mapped to '[EMAIL PROTECTED]' in
> userdb, so I'll proceed from now on as if the legacy user had typed
> '[EMAIL PROTECTED]'."  The alternative is for me to have to contact all of
> my users and tell them that, at some point during the day, they'll
> suddenly receive errors from their mailers (everybody uses pop right now)
> saying that the username/password is incorrect, and try to explain to them
> that they have to change their username to "[EMAIL PROTECTED]"
> Thankfully I can at least preserve the password!
> 
> Lastly, I'd also like world peace, a perfect mouse trap, and the ability
> to read minds.  If somebody can at least help with courier then I'd be
> satisfied.
> 
> Many TIA.
> 
> Regards,
> Dan
> 
> --
> ---------------------------------------------------
> Dan Yost         <[EMAIL PROTECTED]>        Proverbs 1:7
>                  http://tri8.com
> 
> Tri-8, Inc.             "Pro Christo et Regno"
> 820 S. Main, Suite 2000  Voice: 405.377.3888
> Stillwater, OK  74074      FAX: 405.533.1136
> ---------------------------------------------------
> 
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to