[courier-users] Another issue with hosteddomains and defaultdomain (was: Can the "defaultdomain" entry also be in "hosteddomains"?)

This is a discussion on [courier-users] Another issue with hosteddomains and defaultdomain (was: Can the "defaultdomain" entry also be in "hosteddomains"?) within the Courier-Imap forums, part of the Mail Servers and Related category; Jeff Jansen <ivb_tech@sil.org> writes: > Lloyd Zusman wrote: >> >> [ ... ] >> >> ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-02-2005
Lloyd Zusman
 
Posts: n/a
Default [courier-users] Another issue with hosteddomains and defaultdomain (was: Can the "defaultdomain" entry also be in "hosteddomains"?)

Jeff Jansen <ivb_tech@sil.org> writes:

> Lloyd Zusman wrote:
>>
>> [ ... ]
>>
>> A related question: can "locals" be completely empty (or non-existent),
>> as long as all my domains appear in "hosteddomains"?

>
> Sure - you don't need a local domain. Everything can be a hosteddomains
> - just make sure that the locals file is empty. But if you do this then
> you'll need to change the username of ALL the users who are on that domain.
>
> For instance if your local domain was 'domain.com' and you had users
> "bob" and "alice" then their user names in userdb or mysql or whatever
> authentication method you use would be "bob" and "alice". If you move
> 'domain.com' to a hosteddomain then you need to change their user names
> to be "bob@domain.com" and "alice@domain.com". This is the difference
> between a local and a hosted domain.
>
> This has to change on the server AND it has to change in all your
> clients. Bob will have to change his email client to log in as
> "bob@domain.com". He can no longer log in as "bob". If you've got a
> lot of clients this can be a *real* pain to get them all to change their
> logins, so make sure you've got a plan and people know about it before
> you make the change.
>
> HTH
>
> Jeff Jansen


Yes, I know that about how addresses for "locals" users are handled to
differently from "hosteddomain" users. Nonetheless, I sincerely thank
you for your kindness in taking the time to explain all this.

I use LDAP authentication and store two user names for each email user:
one of the form "user", and the other of the form "user@domain.tld".
This allows everyone to log in either with or without the domain name.

I now have put my one domain that was formerly in "locals" into
"hosteddomains", and all works fine. However, there is still an
interesting issue that I cannot figure out:

Keep in mind that now, all of my domains are in "hosteddomains", and
"locals" is empty. Suppose that the domain in "defaultdomain" is
"defdom.com", and suppose there is an email account called
"me@defdom.com". When mail to that user is being processed inside of
maildrop, the $USER variable gets set to "me", and the $RECIPIENT
variable gets set to "me@defdom.com".

However, for email going to users of all other domains, both the $USER
and $RECIPIENT variables in maildrop are both set the same. For
example, for "her@otherdom.com", both $USER and $RECIPIENT are set to
"her@otherdom.com".

In other words, domain names are absent in the $USER variable during
maildrop processing for all addresses that hang off of "defaultdomain",
even though that domain is defined inside of "hosteddomains" with all
the rest, and even though "locals" is empty. For all other domains, the
domain name is present in the $USER variable during maildrop processing.

Can anyone explain why this is occurring?

Thanks.


--
Lloyd Zusman
ljz@asfast.com
God bless you.



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0