This is a discussion on Re: [courier-users] Can the "defaultdomain" entry also be in "hosteddomains"? within the Courier-Imap forums, part of the Mail Servers and Related category; Jeff Jansen wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Lloyd Zusman wrote: > >>In ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Jeff Jansen wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Lloyd Zusman wrote: > >>In order to keep my maildrop processing rules simple and consistent, and >>for other reasons which I won't go into here, I'd like, if possible, for >>the "defaultdomain" to also get processed with "@domain.tld" attached. >> >>The only way I can think of to make this happen would be for me to put >>my "defaultdomain" entry also into "hosteddomains". If I do that, >>should I remove it from "locals", or do I need to keep it both in >>"locals" and "hosteddomains"? >> >>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 Actually, if you're using courierauthlib you got: DEFAULT_DOMAIN in authmysqlrc and authpgsqlrc LDAP_DOMAIN in authldaprc I used to patch the userdb auth module to append my default domain if there wasn't a @ in the username, but that was long before authlib. No need to patch anymore, I now use mysql ;) Later.- ------------------------------------------------------- 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 |