Customize Subject Mailing List
From MsgServerDocWiki
How do I set a sequential serial number to the subject of each email on a mailing list?
To do this, you will need to set up an "old style" mailing list as per
http://www.process.com/tcpip/PMDF63docs/html/sysman/book_6b1.html
using the SEQUENCE_PREFIX and SEQUENCE_SUFFIX named parameters and the optional SEQUENCE_STRIP named parameter. So, for example, assume that the mailing list is to be named list1@sun.com.
- Make sure that the option.dat file has an ALIAS_MAGIC setting which includes "4" so that the alias file is consulted. For instance, I used "ALIAS_MAGIC=8764" for my testing.
- Make sure that bit 1 of ALIAS_DOMAINS is set in the option.dat file. I used ALIAS_DOMAINS=6 which has bits 1 and 2 lit and bit zero cleared. This bit ensures that lookups of the form "mailbox@domain" are done to the alias file.
- Set up the mailing list list1-ldap as you normally would in LDAP.
- Create the file containing the membership of list1. This file is a text file and should have a single line, "list1-ldap@sun.com". The file should be owned by Messaging Server and best to not have it be world writeable. Indeed, there's no need for anyone to write to it.
# cat > /opt/SUNWmsgsr/config/list1.txt list1-ldap@sun.com ^D # chown mailsrv:mail /opt/SUNWmsgsr/config/list1.txt # chmod o-w /opt/SUNWmsgsr/config/list1.txt
- To the aliases file in /opt/SUNWmsgsr/config/, add the mailing list list1@sun.com:
list1@sun.com: </opt/SUNWmsgsr/config/list1.txt, \ [SEQUENCE_PREFIX] /opt/SUNWmsgsr/config/list1.sequence, \ [SEQUENCE_STRIP] NONE
- Messaging Server will automatically create the file list1.sequence and give it a binary content. The initial content will generate the sequence number "[1]".
- Make sure no errors are reported by testing with "imsimta test - rewrite". Use the "-noimage" switch so as to use the new aliases file directly and not the compiled configuration (which you have not compiled yet):
# imsimta test -noimage -rewrite list1@sun.com
Doing an imsimta test -rewrite on a list defined to use sequence numbers causes the sequence file to get created (if it doesn't already exist) and the sequence number to get updated. Thus:
- Check that after imsimta test -rewrite, the sequence file list1.sequence does in fact now exist (and should contain the numeral 1).
- Delete the list1.sequence file (if you want the actual list postings to start at [1], rather than at [2]).
- Go live with the changes by compiling the configuration and telling the SMTP services to do a reload:
# imsimta cnbuild # imsimta reload
- Send a test message to list1@sun.com. It should get "[1]" prepended to the subject header line and then redirected to the actual list, list1-ldap.
Categories: FAQ | MTA

