Yes you are right it is a bug... I've just been going through the shared addressbook features testing all of it as I was writing a response to your email.
Let me summarise current state... The shared addressbooks you can either have the surgeweb style addressbooks where you can add a whole bunch of additional contact fields. Or the Authentication based / ldap based address books where you simply have name and address info.
For the surgeweb based addressbooks, I have just confirmed that it pretty much works as designed.
ie you have a Global defined it uses:
surgemail/abook/global.abk
and if you have Domain defined it uses:
surgemail/abook/your.domain/domain.abk
surgemail/abook/other.domain/domain.abk
and the shared addressbooks all work as expected.
However as you have observed saving auth or ldap based addressbook treat the abook setting pretty much as a global setting which means it can only get applied to one domain on your server as it stands. If you apply this to a non default domain you explicitly need to specify the search rule in surgemail/sbook/auth_BookName.dat of:
abook_search_string HIDDEN@n2
But as you say this does not get you additional domains :-(( I was not aware of this limitation and will need to have a careful look at how I can fix this without breaking other existing installations as this behaviour has been unchanged since November 2009. I'll see if I can get a suitably fixed specials build up tomorrow. What platform would you need a build for?
Marijn
Hello,
I am attempting to implement the shared address books feature for a domain and I am not having any success. I have added the "Domain" address book to one domain in SurgeMail as a test. The type is Authent. The corresponding line that gets added to surgemail.ini is the second line below.
vdomain address="" name="test.tld"
abook name="Domain" read="*" write="" type="auth"
The problem is that when I select the "config" link next to Authent, it creates the configuration file "/usr/local/surgemail/abook/auth_Domain.dat". This creates two problems.
First, there can be only one address book called "Domain" since the file was not domain specific. The SurgeMail documentation (http://netwinsite.com/surgeweb/help/contacts.htm) seems to hint that this file should be in a subdirectory with the name of the domain (i.e. /usr/local/surgemail/abook/test.tld/auth_Domain.dat).
Second, contrary to the comments in auth_Domain.dat, which read as follows:
# *abook_search_string* advanced setting that will allow you to modify the string sent to the
# authent databse. default is "HIDDEN@_domain}"
The Domain address book for test.tld did NOT contain any contacts for test.tld. Instead, it had all of the contacts for imaginenet.net, which is the first vdomain in surgemail.ini.
I tried creating the subdirectory /usr/local/surgemail/abook/test.tld/ and then moving auth_Domain.dat into this directory. However, after doing so, SurgeWeb reports an error "invalid config file (book/auth_Domain.dat)".
This looks like a bug in SurgeMail unless I am doing something very wrong. I am running SurgeMail version 6.3c2-2 on 32-bit Linux.
Any assistance would be greatly appreciated.
Thank you,
Jim Lohiser
Imagine Net, Inc.