API to request a reindex for a given user / domain
Question asked by CCC - October 17, 2017 at 9:59 AM
We have a customer that wants their email purged after "x" number of days.  Since smartermail doesnt seem to have these settings, we created some powershell scripts to perform this task. The one piece that is missing is reindexing the user(s) in question once the older messages have been deleted. I took a look through SM Enterprise 15.x and don't see a way to request a user reindex via the API.  Is this available in SM16?  if not, feature request?

2 Replies

Reply to Thread
Rod Lasky Replied
Employee Post
Hi CCC.  There's currently not an Indexing API, however you can set up Folder Auto-Clean rules for the user that will delete mail after X amount of days.  This can be done within the SmarterMail interface.
Rod Lasky
Technical Support Specialist
SmarterTools Inc.
(877) 357-6278
CCC Replied
I was under the impression that auto-clean folders only work against "known" folder names (such as Inbox, Sent, Junk, etc)
Can auto-clean rules be setup at the domain level to automatically purge mail after 10 days for ALL (current and future) users and ALL (current and future) folders ?
For example, if I setup auto-clean rule today at the domain level, and next week a user were to create a custom folder called "Email from Joe" via IMAP or Webmail would the auto-clean rule automatically include that new folder, or would we need to create a "one off" auto-clean rule for that "Email from Joe" folder?

Reply to Thread