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: >> >> [ ... ] >> >> ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |