Globally apply junk-e-mail folder cleanup agent??

For any other discussion relating to MailEnable.
Post Reply
Posts: 5
Joined: Thu Feb 18, 2021 5:52 am

Globally apply junk-e-mail folder cleanup agent??

Post by StephenDavey »

I can easily apply the "Mailbox Cleanup Agent" on a Postoffice by Postoffice basis via . .
MailEnable Management > Post Offices > {postoffice} properties > Agents > Mailbox Cleanup Agent . . Settings
is there a way I can do this globally for all my postoffices/domains . . as I have about 200 that need enabling??
Cheers, Stephen D

Site Admin
Posts: 1093
Joined: Mon Jun 10, 2002 6:31 pm
Location: Melbourne, Victoria, Australia

Re: Globally apply junk-e-mail folder cleanup agent??

Post by Admin »

You can use the system option command line utility at:

Just extract it to the Mail Enable\bin directory and you can set options for mailboxes/postoffices. So for globally you could do:

mesocu postoffice * Agent-Purge-Inbox-Enabled 1
mesocu postoffice * Agent-Purge-Inbox-Value 2000
mesocu postoffice * Agent-Purge-Inbox-DeleteUnread 1

This will enable the purge for all the inboxes for all postoffices and set it to delete unread over 2000 days old. Junk folder purging is done with:

mesocu postoffice * Agent-Purge-Junk-Enabled 1
mesocu postoffice * Agent-Purge-Junk-Value 2000
mesocu postoffice * Agent-Purge-Junk-DeleteUnread 1

Replace the * with the postoffice name if you are testing it out.

Post Reply