When running Xeams in Firewall mode, occasionally, you may want to insert custom headers allowing the downstream server to apply additional filtering. Consider the following use case where this feature is applicable.
You must be using build 6240 or higher.
X-PrintingPartner:yes
$INSTALL_DIR/config
folder called CustomHeaderInjector.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <customHeaderInjector> <!-- Following is a valid list of injectorType: 1 - Sender's IP address 2 - Sender's Email address, which appears in SMTP envelope (MAIL FROM) 3 - Host name of the connecting IP address 4 - HELO string specified during SMTP communication 5 - Recipient's address, which appears in RCPT TO Following is a valid list of operators: 0 - Equals 1 - Ends with 2 - Starts with 3 - Missing --> <injectors> <!-- Example of an email that comes in from a partner. It puts a header with a YES value. --> <injector friendlyName="PrintingPartner" injectorType="1" operator="1"> <searchFor><![CDATA[50.60.70.80/32]]></searchFor> <headerName>X-PrintingPartner</headerName> <headerValue>yes</headerValue> </injector> </injectors> </customHeaderInjector>
50.60.70.80