MILTER MACROS mapping table

Support for the  mapping table was added for Messaging Server 7.3-11.01. is called by the milter spam filter plugin  each time a  macro is passed to the milter server. The probe format is: spamfilter-index&#x7c;command&#x7c;macro-name&#x7c;macro-value Here   is an integer between 1 and 8 specifying the spam filter slot this milter is in,    is the command this macro precedes, so one of:



 

 

 



The   is simply the name of the macro being defined and   is its value. Note that the  MTA option, if set, will cause any vertical bar characters that would have been in the    field to be replaced by the specified  character.

When the mapping returns, if $N or $F are set then the macro is dropped and never sent to the milter server. (This is also the behavior if $Y or $T is set, but with no additional string returned by the mapping template.)

If none of $N, $F, $Y or $T is set, then the original macro name and value are used, as if the  mapping table had not applied.

If, however, $Y or $T is set and a string is returned also, then the mapping&#x27;s string result is processed as a series of macro name/value pairs, each name or value separated  by vertical bars. Finally, if $&#x7c; is set in the mapping template in addition to $Y or $T, then only a single name-value pair is read from the result and the second and subsequent vertical bars are treated as part of the value.

Note that if either the original  , or a replacement macro value returned as a string along with $Y or $T, includes a vertical bar character,, then regardless of whether   is used, the vertical bar test flag will be set (so that a mapping template may check for the original presence of a vertical  bar in the macro name via a   vs.   test).

See also:
 * mapping_paranoia MTA Option
 * Mapping tables
 * Spam and virus filtering
 * Spamfilter MTA options
 * Milter spamfilterN_config_file
 * Milter implementation