Advanced variables

MSH Traffic Policy for Postfix is an email management system which allows to set server sided rules for automatic content control and flow administration.

If you need to:

  • take control over your mail flow
  • block unwanted spam
  • check email messages sensitive content
  • limit number of recipients, attachment or message size
  • modify message headers, message sender and recipients
  • sent new and forward messages

Advanced variables?

Variables could be used in actions and conditions, they will be replaced with proper values while processing messages.

Message Misc

  • ${message:id} Message unique identifier, value of X-MSH-Id header added by MSH Traffic Policy.
  • ${message:subject} Message subject, shortcut for ${message:header:subject}.

Message Envelope

  • ${message:envelope:sender} Message envelope sender.
  • ${message:envelope:recipients} Message envelope recipients. If more than one then separated with comma.
  • ${message:envelope:recipients:count} Message envelope recipients count.

Message Size

  • ${message:size} Message size in default size unit (kB).
  • ${message:size:b} Message size in bytes.
  • ${message:size:kb} Message size in kilobytes
  • ${message:size:mb} Message size in megabytes.
  • ${message:size:gb} Message size in gigabytes.

That’s all? No.

To learn more visit MSH Traffic Policy website.

Lukasz is a software developer and owner of MSH Software company which builds email processing tools for Microsoft Exchange, Zimbra Collaboration Suite and Postfix. He specializes in server, desktop and web applications written in Java, .NET and C++.