Example message archiving configuration

From Messaging Server Technical Reference Wiki
Jump to: navigation, search


Here is an example configuration for using AXS:One archiving.

  • In the MTA option file:

    
    SPAMFILTER1_LIBRARY=IMTA_LIB:libarch.so 
    SPAMFILTER1_CONFIG_FILE=IMTA_TABLE:archive.dat 
    MESSAGE_HASH_ALGORITHM=MD5 
    ! 
    ! Not bothering to hash over Content-type: and Content-description: 
    ! 
    MESSAGE_HASH_FIELDS=Message-id,Resent-message-id,From,Resent-From,\
     To,Resent-to,Cc,Resent-Cc,Bcc,Resent-Bcc,Subject,Content-id 
    
    
  • In the archive.dat file:

    
    STYLE=1 
    DIRECTORY=/opt/SUNWmsgsr/archive/ 
    ! For compliance mode (legal archiving requirements compliance): 
    IDSUFFIX=-0000MD500 
    
    
  • If the desire is to archive a copy of each message getting delivered to the Message Store on the ims-ms channel, plus a copy of each message going out to the Internet on the tcp_local channel, then those two channels in the MTA configuration file, imta.cnf, would be marked with destinationspamfilter1, with the ims-ms channel also being marked generatemessagehash (so that archived copies could be correlated with the copies in the Message Store, delivered by the ims-ms channel), e.g.,

    
    ims-ms ...rest-of-keywords... generatemessagehash destinationspamfilter1 
    ims-ms-daemon 
     
    ...other-channel-definitions...
     
    tcp_local ...rest-of-keywords... destinationspamfilter1 
    tcp-daemon 
    
    

Or in Unified Configuration, the MTA and channel options set as:


msconfig> set mta.spamfilter1_library IMTA_LIB:libarch.so
msconfig# set mta.spamfilter1_config_file IMTA_TABLE:archive.dat
msconfig# set mta.message_hash_algorithm MD5
msconfig# set mta.message_hash_fields "Message-id Resent-message-id From Resent-From To Resent-to Cc Resent-Cc Bcc Resent-Bcc Subject Content-id"
msconfig# set channel:ims-ms.generatemessagehash
msconfig# set channel:ims-ms.destinationspamfilter1
msconfig# set channel:tcp_local.destinationspamfilter1

and the IMTA_TABLE:archive.dat (i.e., CONFIGROOT/archive.dat) file:


STYLE=1 
DIRECTORY=/opt/SUNWmsgsr/archive/ 
! For compliance mode (legal archiving requirements compliance): 
IDSUFFIX=-0000MD500 

See also: