Alias_header_addition and alias_header_trim alias options

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



Alias options: alias_header_addition and alias_header_trim

The alias_header_trim and alias_header_addition alias options are analogues of the legacy configuration [HEADER_TRIM] and [HEADER_ADDITION] alias file named parameters. The alias_header_trim alias option may be used to add headers to or remove headers from posted messages. The argument must be a full file specification for a header trimming option file; see Header option files for information on the format of these files. alias_header_addition is more specialized than alias_header_trim, being used when there are merely headers to be added. alias_header_addition may be used to specify a file of headers to be added to posted messages. The argument must be a full file specification for the file containing headers to be added.

In particular this facility can be used to add the standard mailing list headers defined in RFC 2369. For instance, a site domain.com that has set up a list named listname, that has a list owner address of listname-owner@domain.com and a list members administrator address of listname-request@domain.com, and with certain list information and archives available at an FTP site, might use a header addition file along the lines of the following:


List-Help: <ftp://ftp.domain.com/pub/listname-help.txt&#x3e; (FTP), 
     <mailto:listname-owner@domain.com?subject=help&#x3e; (List Manager) 
List-Subscribe: 
     <mailto:listname-request@domain.com?subject=subscribe%20listname?body=subscribe%20listname&#x3e; 
List-Unsubscribe: 
     <mailto:listname-request@domain.com?subject=unsubscribe%20listname?body=unsubscribe%20listname&#x3e; 
List-Post: <mailto:listname@domain.com&#x3e; 
List-Owner: <mailto:listname-owner@domain.com?Subject=listname&#x3e; 
List-Archive: <ftp://ftp.domain.com/pub/listname/archive/&#x3e;, 
    <mailto:listname-request@domain.com?subject="send%20listname%20archives?body=send%20/pub/listname/archive/*> 

See also: