Wednesday, August 5, 2015

Adding Useful Headers to Inbound Mail with Ironport Message Filters

We recently had a health check performed on our Ironport appliances by Cisco, and the following message filter was recommended to me by Dalton Hamilton, the engineer who worked the engagement for Cisco.

This filter adds several useful headers to all inbound mail.

addHeaders:  if (sendergroup != "RELAYLIST")
{
     insert-header("X-IronPort-RemoteIP", "$RemoteIP");
     insert-header("X-IronPort-MID", "$MID");
     insert-header("X-IronPort-Reputation", "$Reputation");
     insert-header("X-IronPort-Listener", "$RecvListener");
     insert-header("X-IronPort-SenderGroup", "$Group");
     insert-header("X-IronPort-MailFlowPolicy", "$Policy");
}


Thanks, Dalton!

1 comment:

  1. hey, just a suggestion here. You should edit the title of this to include "X client header" and more keywords in here for the sending/original MTA IP. You have no idea how much time i just invested trying to find this answer. Thank you so much for the insight! Cheers!

    ReplyDelete