The email for one the accounts on my SME server needs to be forwarded to a weekly changing email address. One of the ways to do this would be to adjust the forward address in the server manager, however preferably I would like to do this via a script that runs on a weekly basis.
Eventually the file ~$USER/.procmailrc needs to be adjusted, but to do it the 'SME way', I suppose the first step would be to make a change in the accounts database:
# db accounts setprop <AccountName> ForwardAddress <email@address.com>
Now I assume the second and last step would be to implement the account database change by calling an SME specific script that will regenerate the .procmailrc file from the account that needs to changed.
Is this the way to go and if so, what would step 2 exactly be?