Adding a Header

Adding a new header to all messages can be useful for tracking purposes. This filter adds an "X-Seen-By" header to all messages.

# attr NAME=add a header
# Adds an 'X-Seen-By' header to all messages.
pmx_add_header "X-Seen-By" "%%HOSTNAME%%";

Description:

Where does this filter go?

The "add a header" filter should be placed before the filter in "Policy Script 1: Scan and Deliver Internal Messages" and directly after the pmx_test_mark action. Positioning the "add a header" filter at this point ensures that:

Related concepts
Policy Script 1: Scan and Deliver Internal Messages
Related information
pmx-policy