For now, I just made the changes you suggested to the addressbook.php file. I saved a copy locally in the event that a later update would "undo" my changes. But the changes you suggested worked great and accomplished the task. Thank you. Quoting Tomas Kuliavas <tokul@xxxxxxxxxxxxxxxxxxxxx>: > > > Tom Jensen-4 wrote: >> >> I am using Squirrelmail 1.4.13 on an Ubuntu 8.04 LTS machine. The >> database backend for Squirrelmail is MySQL. >> >> Squirrelmail was installed using the normal apt-get command on the command >> line. The server hosts email for several domains. Some users have asked >> for a global address book. When I enabled the settings for the global >> address book and began testing, the new address was visible to users in >> all domains. >> >> How can I limit access to the global address book? My desire would be to >> have a global address book per domain on the server. >> > > In SquirrelMail functions/addressbook.php addressbook_init function you have > ---- > $r = $abook->add_backend('database', > Array('dsn' => $addrbook_global_dsn, > 'owner' => 'global', > 'name' => _("Global address book"), > 'writeable' => $addrbook_global_writeable, > 'listing' => $addrbook_global_listing, > 'table' => $addrbook_global_table)); > ---- > > Change it to > ---- > if (preg_match("/(.*)@(.*)/",$username,$match)) { > $abook_domain=$match[2]; > } else { > global $domain; > $abook_domain=$domain; > } > $r = $abook->add_backend('database', > Array('dsn' => $addrbook_global_dsn, > 'owner' => $abook_domain, > 'name' => _("Global address book"), > 'writeable' => $addrbook_global_writeable, > 'listing' => $addrbook_global_listing, > 'table' => $addrbook_global_table)); > ---- > > Or create custom address book plugin which its new address book with owner > set to user's domain. Since you are using SquirrelMail Ubuntu package, > custom plugin solution is better. > -- > View this message in context: > http://www.nabble.com/Limit-access-to-Global-Address-Book-tp22132966p22144104.html > Sent from the squirrelmail-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > ----- > squirrelmail-users mailing list > Posting guidelines: http://squirrelmail.org/postingguidelines > List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx > List archives: http://news.gmane.org/gmane.mail.squirrelmail.user > List info (subscribe/unsubscribe/change options): > https://lists.sourceforge.net/lists/listinfo/squirrelmail-users > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users