You can use the command:
sogo-tool user-preferences and set your value.
Work only per user this command.
Mean you need extract all your email on the server, create a excel list of command 1 line per user mailbox, copy all the line and past for launching in one time all the line for the change...