4
Replacing AddressBook.xml
Question asked by Michael Cummins - 10/8/2014 at 8:45 AM
Unanswered
Can you replace this file with a backup and not restart SmarterMail?

10 Replies

Reply to Thread
0
Bruce Barnes Replied
No, you need to STOP the SmarterMail service, replace the file, and then restart the SmarterMail service.
Bruce Barnes ChicagoNetTech Inc brucecnt@comcast.net Phonr: (773) 491-9019 Phone: (224) 444-0169 E-Mail and DNS Security Specialist Network Security Specialist Customer Service Portal: https://portal.chicagonettech.com Website: https://www.ChicagoNetTech.com Security Blog: http://networkbastion.blogspot.com/ Web and E-Mail Hosting, E-Mail Security and Consulting
1
kevind Replied
Anybody know a workaround so you don't have to stop/start the SmarterMail service when replacing the AddressBook.xml file?
 
Seems a bit disruptive to stop everything for 1 user (and schedule an off-hours maintenance event).
 
Thanks,
Kevin
1
Employee Replied
Employee Post
Kevin, unfortunately Bruce is correct in that there is no easy to to simply replace the AddressBook.xml file without also restarting the service.  One possible workaround, however, may be to make a copy of the user folder.  In the web interface, remove the user.  Rename the copied user folder to the original name.  The Restore that particular user.  This will force a reload of the user data files.  However, the cache may still show load information until it refreshes (~10 minutes).
 
I will add an entry in our feature requests list to have the ability to reload a user without restarting the mailservice.
0
kevind Replied
OK, thanks for the workaround. Looks like a lot of work, but I could try it out if the replacement can't wait until off hours.

Since you're adding this to the feature request list. Here's an option used on other mail servers -- split up your services (might require some work). Instead of a single SmarterMail service, make a SmarterMail SMTP, SmarterMail Web, SmarterMail AV+AS, etc. Then one could just toggle a single service to reload user data and not have to shut everything down.

This would have been helpful the other day as our spool was overloaded. I wanted to turn off just SMTP so it could catch up. (Couldn't go into Manage Services on the web because it just spins trying to read the spool.)
0
Employee Replied
Employee Post
Kevin, you can use the svcServerAdmin.asmx web service API and call the StartServices and StopServices functions.  You can stop/start the imap, imap retrieval, indexing, idap, pop, popretrieval, smtp, spool, and xmpp services.
0
kevind Replied
Robert, good tip! Would stopping/starting any of those services reload the AddressBook?

What we really need is a web service to manage contacts. That's why we're updating the AddressBook.xml in the first place! Scratch the enhancement request to reload a user. Just make some web services to update contacts. :)
0
kevind Replied
After further thought, I'm going to look at EWS or CardDAV to see if I can use either of those to update contacts.
1
Merle Wait Replied
Please, please please... Robert.. I have asked pleaded.. and offered to pay $$$$$ to have the SOAP services fixed so that we could update/edit contacts......   That would fix a myriad of things that we are dealing with
0
Employee Replied
Employee Post
We are planning on exposing more APIs (including contact and calendaring APIs) with the next major release of SM. Each new version thereafter will expose more and more API functions.
0
Merle Wait Replied
So I would be willing to pay.. play test .. whatever... to help this effort along... I code in C#, Cobol, Assembler & VB... I know SOAP/CalDav calls.. et al... Am very serious about getting this up and running.
Thanks :)

Reply to Thread