Configure Your SunOne IMS Environment

SunOne (and derivative products like IMS) has a powerful rules engine called Sieve. Use Sieve to create rules that copy messages from user mailboxes to a archive mailbox. All the messages will be collected from archive mailbox daily.

For user1 we set the rule:
#RULE: $Name="archive" $Order=2 $Type="DEFAULT_TYPE" #BEGINFILTER if anyof(header :is ["From","Sender","Resent-from","Resent-sender","Return-path"] "user2@domain.com"){ redirect "archive@domain.com"; keep; } #ENDFILTER

For user2 we set the rule:
#RULE: $Name="archive" $Order=2 $Type="DEFAULT_TYPE" #BEGINFILTER if anyof(header :is ["From","Sender","Resent-from","Resent-sender","Return-path"] "user1@domain.com"){ redirect "archive@domain.com"; keep; } #ENDFILTER