2
Changes to domainList.xml dont work
Problem reported by Steve Guluk - 3/15/2021 at 4:18 PM
Submitted
Hello, 
Moving a domain from one hard drive to another so updating the domainList file to point to the new home. But this does not work as reflected in the domain detail page (Configuration tab/Folder setting) within SmarterMail.

Yes, restarted the smartermail Service. Actually restarted the server also as well as reviewed the domainList.xml file in the Services directory and still no change.

Using the latest version of SmarterMail so what other area could be holding on to this information and not respecting the XML file?

3 Replies

Reply to Thread
0
echoDreamz Replied
Did you stop the SM service => edit file => then start SM?
0
Steve Guluk Replied
Yes, stopped Service, Edited XML, saved then Restarted.
3
Sébastien Riccio Replied
If I'm not wrong, the XML config file domainList.xml (and every xml files basically) is not used anymore since v100(v17) of SmarterMail.

They were replaced by json files. You should edit this file instead

C:\Program Files (x86)\SmarterTools\SmarterMail\Service\Settings\domains.json 
Also SmarterMail json files are flattened to one line, so viewing/editing them is a bit a pain.
I suggest you use an editor that can reformat it to a more human readable/editable formatting. 

Visual Studio Code for example can do this after you opened the file:
SmarterMail will re-flat it to one line next time it save changes to it.

Of course be sure to backup the file before editing anything in case you need to rollback.

Kind regards,
Sébastien

Sébastien Riccio
System & Network Admin

Reply to Thread