Skip to content
Jim Cowart edited this page Jan 16, 2013 · 1 revision

The configure method takes one argument - an object literal containing or more of the following possible postal.federation settings:

  • enabled - a boolean value which defaults to true. If this value is set to false, then the local instance of postal will no longer send nor receive to/from remote postal instances.
  • filterMode - A string value which can be "whitelist" or "blacklist". It defaults to "whitelist".
  • filterDirection - A string value which can be "in", "out" or "both". It defaults to "both".

Here's an example of configuring postal.federation to use blacklist mode, with a default filter direction of "in":

postal.fedx.configure({
    filterMode      : 'blacklist',
    filterDirection : 'in'
});

Clone this wiki locally